Beispiel #1
0
 /**
  * @param ChildAssignedRoleGlobal $assignedRoleGlobalRelatedByAssignedBy The ChildAssignedRoleGlobal object to add.
  */
 protected function doAddAssignedRoleGlobalRelatedByAssignedBy(ChildAssignedRoleGlobal $assignedRoleGlobalRelatedByAssignedBy)
 {
     $this->collAssignedRoleGlobalsRelatedByAssignedBy[] = $assignedRoleGlobalRelatedByAssignedBy;
     $assignedRoleGlobalRelatedByAssignedBy->setassignedBy($this);
 }
Beispiel #2
0
 /**
  * Filter the query by a related \SpoilerWiki\AssignedRoleGlobal object
  *
  * @param \SpoilerWiki\AssignedRoleGlobal|ObjectCollection $assignedRoleGlobal the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildRoleQuery The current query, for fluid interface
  */
 public function filterByAssignedRoleGlobal($assignedRoleGlobal, $comparison = null)
 {
     if ($assignedRoleGlobal instanceof \SpoilerWiki\AssignedRoleGlobal) {
         return $this->addUsingAlias(RoleTableMap::COL_ID, $assignedRoleGlobal->getUserId(), $comparison);
     } elseif ($assignedRoleGlobal instanceof ObjectCollection) {
         return $this->useAssignedRoleGlobalQuery()->filterByPrimaryKeys($assignedRoleGlobal->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAssignedRoleGlobal() only accepts arguments of type \\SpoilerWiki\\AssignedRoleGlobal or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildAssignedRoleGlobal $assignedRoleGlobal Object to remove from the list of results
  *
  * @return $this|ChildAssignedRoleGlobalQuery The current query, for fluid interface
  */
 public function prune($assignedRoleGlobal = null)
 {
     if ($assignedRoleGlobal) {
         $this->addUsingAlias(AssignedRoleGlobalTableMap::COL_ID, $assignedRoleGlobal->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Beispiel #4
0
 /**
  * @param ChildAssignedRoleGlobal $assignedRoleGlobal The ChildAssignedRoleGlobal object to add.
  */
 protected function doAddAssignedRoleGlobal(ChildAssignedRoleGlobal $assignedRoleGlobal)
 {
     $this->collAssignedRoleGlobals[] = $assignedRoleGlobal;
     $assignedRoleGlobal->setrole($this);
 }