public function onParentRefIdChanged($event)
    {
        $sender = $event->sender;
        /* @var $sender static */
        if ($sender->isAttributeChanged($sender->refIdAttribute)) {
            return $sender->onUpdateChildren($event);
        }
    }
public function onParentRefIdChanged($event)
    {
        $sender = $event->sender;
        /* @var $sender static */
        if ($sender->isAttributeChanged($sender->refIdAttribute)) {
            return $sender->onUpdateChildren($event);
        }
    }
public function onParentRefIdChanged ( $ event ) { $ sender = $ event -> sender ; /* @var $sender static */ if ( $ sender -> isAttributeChanged ( $ sender -> refIdAttribute ) ) { return $ sender -> onUpdateChildren ( $ event ) ; } }
Update children's parent attribute.
Event triggered before updating.
@param ModelEvent $event
@return boolean
Update children s parent attribute . Event triggered before updating .