The documentation said for ActiveRecord::with
By default, the options specified in relations() will be used to do relational query. In order to customize the options on the fly, we should pass an array parameter to the with() method. The array keys are relation names, and the array values are the corresponding query options.
Post::model()->with(array(
'author'=>array('select'=>'id, name'),
'comments'=>array('condition'=>'approved=1', 'order'=>'create_time'),
))->findAll();
a option like 'alias'=>'myComments' is ignored in version 1.13.
Is there a new way to specify a dynamlic alias for joined table?
Best regards - Jens
Page 1 of 1
Activerecord::with Parameter Alias Is Not Working Anymore upgrade from version 1.12 to 1.13
#2
Posted 05 January 2013 - 03:26 AM
Hi datatraders,
It might be a bug introduced in 1.1.13.
I think you should report it as an issue in github.
https://github.com/y...sues?state=open
It might be a bug introduced in 1.1.13.
I think you should report it as an issue in github.
https://github.com/y...sues?state=open
Share this topic:
Page 1 of 1

Help











