public function onInitStatusAttribute($event)
    {
        $sender = $event->sender;
        /* @var $sender static */
        if (empty($sender->getStatus())) {
            $sender->setStatus(self::$statusActive);
        }
    }
public function onInitStatusAttribute($event)
    {
        $sender = $event->sender;
        /* @var $sender static */
        if (empty($sender->getStatus())) {
            $sender->setStatus(self::$statusActive);
        }
    }
public function onInitStatusAttribute ( $ event ) { $ sender = $ event -> sender ; /* @var $sender static */ if ( empty ( $ sender -> getStatus ( ) ) ) { $ sender -> setStatus ( self :: $ statusActive ) ; } }
Initialize the status attribute.
This method is ONLY used for being triggered by event. DO NOT call,
override or modify it directly, unless you know the consequences.
@param ModelEvent $event
Initialize the status attribute . This method is ONLY used for being triggered by event . DO NOT call override or modify it directly unless you know the consequences .