public function saveEntity()
    {
        $ret = null;

        if ($this->getRepository()->validate($this)) {
            $ret = $this->getRepository()->commit($this);
        }

        return $ret;
    }
public function saveEntity()
    {
        $ret = null;

        if ($this->getRepository()->validate($this)) {
            $ret = $this->getRepository()->commit($this);
        }

        return $ret;
    }
public function saveEntity ( ) { $ ret = null ; if ( $ this -> getRepository ( ) -> validate ( $ this ) ) { $ ret = $ this -> getRepository ( ) -> commit ( $ this ) ; } return $ ret ; }
Tries to only save the entity.

@return bool
Tries to only save the entity .