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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 30 = ?
Subscribe to this entry?

 
 [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: Thu Dec 12 08:01:24 2019 UTC