|  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: 2021-08-09 11:20 UTC
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: Suspended 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:
Solve the problem:
12 - 7 = ?
Subscribe to this entry?

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

select A.store_id as sid, B.first_name as firstName from 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


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


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.
 [2021-08-09 11:20 UTC]
-Status: Open +Status: Suspended
 [2021-08-09 11:20 UTC]
Apparently, that HHVM PR had been abandoned.  Anyhow, that would
require the RFC process[1], so please pursue it if you're still
interested in this feature.  For the time being, I suspend this

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 05:03:37 2021 UTC