I'd like know if there are a way to create my own rules to AR relationships or extends the existent HAS_MANY, BELONGS_TO etc?
Thanks.
I'd like know if there are a way to create my own rules to AR relationships or extends the existent HAS_MANY, BELONGS_TO etc?
Thanks.
Each AR relationships is created with the corresponding class.
These classes extend CActiveRelation » CBaseActiveRelation » CComponent.
You may be able to create your own AR relationship with a custom class extending CActiveRelation.