Issue
Using Yii, how can I get an array from an Active Record.
Say something like this:
array('foo', 'bar', 'lala')
From something like this:
MyTable::model()->findall()
Solution
Don't use ActiveRecord. Use CDBCommand->queryColumn()
Answered By - Neil McGuigan
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.