コード例 #1
0
 /**
  * Filter the query by a related \JaAclRecursos object
  *
  * @param \JaAclRecursos|ObjectCollection $jaAclRecursos 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 filterByJaAclRecursos($jaAclRecursos, $comparison = null)
 {
     if ($jaAclRecursos instanceof \JaAclRecursos) {
         return $this->addUsingAlias(JaAclPerfilesRecursosTableMap::COL_RECURSO_ID, $jaAclRecursos->getId(), $comparison);
     } elseif ($jaAclRecursos instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(JaAclPerfilesRecursosTableMap::COL_RECURSO_ID, $jaAclRecursos->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByJaAclRecursos() only accepts arguments of type \\JaAclRecursos or Collection');
     }
 }
コード例 #2
0
 /**
  * Exclude object from result
  *
  * @param   ChildJaAclRecursos $jaAclRecursos Object to remove from the list of results
  *
  * @return $this|ChildJaAclRecursosQuery The current query, for fluid interface
  */
 public function prune($jaAclRecursos = null)
 {
     if ($jaAclRecursos) {
         $this->addUsingAlias(JaAclRecursosTableMap::COL_ID, $jaAclRecursos->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
コード例 #3
0
 /**
  * Declares an association between this object and a ChildJaAclRecursos object.
  *
  * @param  ChildJaAclRecursos $v
  * @return $this|\JaAclPerfilesRecursos The current object (for fluent API support)
  * @throws PropelException
  */
 public function setJaAclRecursos(ChildJaAclRecursos $v = null)
 {
     if ($v === null) {
         $this->setRecursoId(NULL);
     } else {
         $this->setRecursoId($v->getId());
     }
     $this->aJaAclRecursos = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildJaAclRecursos object, it will not be re-added.
     if ($v !== null) {
         $v->addJaAclPerfilesRecursos($this);
     }
     return $this;
 }