Hi,
On a CActiveDataRecord is it possible to get the model with the behavior?
Thanks.
EDIT: I meant CActiveDataProvider.
Hi,
On a CActiveDataRecord is it possible to get the model with the behavior?
Thanks.
EDIT: I meant CActiveDataProvider.
What do you mean ?
I just know CActiveRecord class, try searching CActiveDataRecord, but couldn’t get anything
Sorry, I meant CActiveDataProvider like it says in the topic title.
I’m also looking to attach a behavior to a model being used in CActiveDataProvider and use the behavior’s attributes and some logic to extend the functionality of the model. When I create the CActiveDataProvider, it uses the base model and ignores the attached behavior.
The only answer I found was to extend CActiveDataProvider and attach a behavior there. This doesn’t seem ideal to me. Here’s the link in case it gives people some ideas http://stackoverflow.com/questions/15774485/yii-attaching-a-behavior-in-cactivedataprovider