propelorm / Propel

Current stable (and outdated and unmaintained) version of Propel - Please use v2 https://github.com/propelorm/Propel2 --
http://www.propelorm.org
MIT License
841 stars 417 forks source link

toArray's type name not effective after select #1062

Open oli414 opened 6 years ago

oli414 commented 6 years ago
$resultA = ProjectQuery::create()->select(["Title",` "Description"])->find()->toArray(null, false, 'camelName');
// json: [{"Title": "X", "Description": "Y"}, {"Title": "F", "Description": "G"}]
$resultB = ProjectQuery::create()->find()->toArray(null, false, 'camelName');
// json: [{"id": 0, "title": "X", "description": "Y"}, {"id": 1, "title": "F", "description": "G"}]

I would expect "resultA" to properly camelCase the keys like in "resultB". This however does not appear to be the case.