BTW, second and further rows come out just fine. It's only the first row having the broken format as described.
On Jun 5, 12:18 pm, rahajiyev <[email protected]> wrote: > Hi, all. I'm attempting to use virtualFields (return Oracle's ROWID to > be more exact): > I've added this to the model: > public $virtualFields = array('id' => "rowid || ''"); > > (this || trick is needed for Oracle to return it as text and not as > LOB). > > Then I find() it: Alas, contrary to what the docs[*] say it's returned > outside the MyModel key: > > Array > ( > [MyModel] => Array > ( > [name] => BLAH > [name2] => BLAH_BLAH > [user_data] => SECRET > [exp_dt] => 20120601 > ) > > [0] => Array > ( > [MyModel__id] => AAADXYAALAAAAFGAAI > ) > > ) > > obviously I expected to see it among other columns as a normal field: > > [id] => AAADXYAALAAAAFGAAI > > Using CakePHP 1.3.15 (for its support of Oracle). > > [*]http://book.cakephp.org/1.3/view/1608/Virtual-fields -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
