public function saveEntity()
    {
        $ret = null;

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

        return $ret;
    }