Closed GoogleCodeExporter closed 9 years ago
Because CActiveRecordMetaData::relations is a public property, you can directly
manipulate this array to achieve add/update/delete a relation.
Original comment by qiang.xue
on 19 Feb 2010 at 9:59
Thanks for contributing the behavior code. I think it is more appropriate as a
3rd
party extension rather than a core class.
Original comment by qiang.xue
on 19 Feb 2010 at 10:01
Let's do it in CActiveRecordMetaData to avoid adding new methods to
CActiveRecord
(the more methods we have in CActiveRecord, the more likely we may have name
conflict
in application code.)
Original comment by qiang.xue
on 13 Mar 2010 at 7:20
Let's do it in CActiveRecordMetaData to avoid adding new methods to
CActiveRecord
(the more methods we have in CActiveRecord, the more likely we may have name
conflict
in application code.)
Original comment by qiang.xue
on 13 Mar 2010 at 7:21
Yes. My first post about it :)
>to CActiveRecordMetaData::addRelation(...config here...) method
Original comment by creocoder@gmail.com
on 13 Mar 2010 at 11:04
Original comment by alexander.makarow
on 13 Mar 2010 at 11:39
This issue was closed by revision r1911.
Original comment by alexander.makarow
on 14 Mar 2010 at 10:52
Original issue reported on code.google.com by
creocoder@gmail.com
on 19 Feb 2010 at 5:18Attachments: