protected function canAcceptRequest()
 {
     return parent::canAcceptRequest() && $this->validatesPresenceOfRefCodInstituicao() && $this->validatesPresenceOfRefCodEscola() && $this->validatesPresenceOfRefCodBiblioteca() && $this->validatesPresenceOfRefCodCliente() && $this->validatesPresenceOfRefCodAcervo();
     // TODO validar se cliente da biblioteca
 }
 protected function canPost()
 {
     return parent::canPost() && $this->validatesUniquenessOfAlunoByPessoaId();
 }
 protected function canAcceptRequest()
 {
     return parent::canAcceptRequest() && $this->validatesPresenceOf(array('instituicao_id', 'escola_id', 'biblioteca_id', 'cliente_id', 'tombo_exemplar')) && $this->validatesIsNumeric('tombo_exemplar') && $this->validatesExistenceOfExemplar() && $this->validatesExistenceOfCliente();
 }