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: 2021-08-09 11:20 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: Suspended 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
 [2021-08-09 11:20 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-08-09 11:20 UTC] cmb@php.net
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
ticket.

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC