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