php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69016 PDOEntity Interface to handle column mapping PDO::FETCH_CLASS
Submitted: 2015-02-08 18:22 UTC Modified: 2016-08-06 11:46 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: tugrultopuz at gmail dot com Assigned:
Status: Open Package: PDO related
PHP Version: 5.4.37 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-08 18:22 UTC] tugrultopuz at gmail dot com
Description:
------------
Hydration of the joined resultset too hard in current situation.

select A.store_id as sid, B.first_name as firstName from sakila.store A inner join sakila.staff B on A.manager_staff_id = B.staff_id;

Above query have got and two table join and column name aliasing. I can hydrade resultset to two seperated models with my patch




Patches

pdo-pdo_mysql-patch (last revision 2015-02-08 18:23 UTC by tugrultopuz at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-06 11:46 UTC] tugrultopuz at gmail dot com
-Summary: PDO Fetch Class Handling Property Setting and PDO_MYSQL extra column meta +Summary: PDOEntity Interface to handle column mapping PDO::FETCH_CLASS
 [2016-08-06 11:46 UTC] tugrultopuz at gmail dot com
I implemented this feature for HHVM.

https://github.com/facebook/hhvm/pull/7242
https://github.com/facebook/hhvm/pull/7242/files
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 00:01:22 2019 UTC