/**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aJaAclPerfiles) {
         $this->aJaAclPerfiles->removeJaAclUsuariosPerfiles($this);
     }
     if (null !== $this->aJaUsuarios) {
         $this->aJaUsuarios->removeJaAclUsuariosPerfiles($this);
     }
     $this->usuario_id = null;
     $this->perfil_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \JaAclPerfiles object
  *
  * @param \JaAclPerfiles|ObjectCollection $jaAclPerfiles The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildJaAclPerfilesRecursosQuery The current query, for fluid interface
  */
 public function filterByJaAclPerfiles($jaAclPerfiles, $comparison = null)
 {
     if ($jaAclPerfiles instanceof \JaAclPerfiles) {
         return $this->addUsingAlias(JaAclPerfilesRecursosTableMap::COL_PERFIL_ID, $jaAclPerfiles->getId(), $comparison);
     } elseif ($jaAclPerfiles instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(JaAclPerfilesRecursosTableMap::COL_PERFIL_ID, $jaAclPerfiles->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByJaAclPerfiles() only accepts arguments of type \\JaAclPerfiles or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildJaAclPerfiles $jaAclPerfiles Object to remove from the list of results
  *
  * @return $this|ChildJaAclPerfilesQuery The current query, for fluid interface
  */
 public function prune($jaAclPerfiles = null)
 {
     if ($jaAclPerfiles) {
         $this->addUsingAlias(JaAclPerfilesTableMap::COL_ID, $jaAclPerfiles->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aJaAclPerfiles) {
         $this->aJaAclPerfiles->removeJaAclPerfilesRecursos($this);
     }
     if (null !== $this->aJaAclRecursos) {
         $this->aJaAclRecursos->removeJaAclPerfilesRecursos($this);
     }
     $this->consultar = null;
     $this->agregar = null;
     $this->editar = null;
     $this->eliminar = null;
     $this->recurso_id = null;
     $this->perfil_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }