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