protected function beforeCreate()
    {
        $this->dispatcher->getEventsManager()->fire(Events::BEFORE_CREATE, $this);
        $this->beforeSave();
    }
protected function beforeCreate()
    {
        $this->dispatcher->getEventsManager()->fire(Events::BEFORE_CREATE, $this);
        $this->beforeSave();
    }
protected function beforeCreate ( ) { $ this -> dispatcher -> getEventsManager ( ) -> fire ( Events :: BEFORE_CREATE , $ this ) ; $ this -> beforeSave ( ) ; }
Method invoked on the beginning of the createAction after checking request validity.
Method invoked on the beginning of the createAction after checking request validity .