Is it possible to CONCAT values of two table columns using the Yii’s ActiveRecord methods and patterns?
If is, how?
I’m currently using this:
return $this->findByAttributes(array('alias' => $alias));
But in this I need to return the concated string/values.
Please help.
If you are looking for something like that:
to receive concatenated values – so i don’t think, that it’s possible.
That’s not the idea of ActiveRecord.
If you like to concat values like the example above, you should take DAO
http://www.yiiframework.com/doc/guide/1.1/en/database.dao
…or if you need ActiveRecord, you should concat the values inside your application