Error In Relations,trying To Get Property.

Thanks

:)

Hi Sir,

Again welcome…plz carry on Steps…what next?

The $data->getRelated(\‘assignments\’) has more one records due to HAS_MANY relation

replace

$data->getRelated(\‘assignments\’)->group_id

with

array_pop($data->getRelated(\‘assignmentrel\’))->group_id’, to get the first one

If you want to show all group_id you can to with another way

@KonApaz.

Thanks for your reply/comments…i have achieved my goal for this relation using ur advise.Thanks for favourable response.

also check the

http://www.yiiframework.com/wiki/232/using-filters-with-cgridview-and-carraydataprovider/#hh1