propelorm/Propel

toArray's type name not effective after select

oli414 opened this issue · 0 comments

$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.