在从带有来自连接的虚拟列的查询中检索到的 PropelORM 对象中,有没有办法/方法在 toArray() 调用中包含虚拟列?
例如:
$book = BookQuery::create()
  ->join('Book.Author')
  ->with('Author')
  ->where('Author.Name = ?', 'Jane Austen')
  ->findOne();
$aBook = $book->toArray();
在上面的代码中,我希望在 toArray() 调用中生成的数组也包含来自 Authors 表的字段,而不仅仅是 Books 表。