public function isValid() { if (empty($this->getConvenio()) || empty($this->getConvenioLider()) || !parent::isValid()) { return false; } return true; }