/** * @param ChildSession $session The ChildSession object to add. */ protected function doAddSession(ChildSession $session) { $this->collSessions[] = $session; $session->setStation($this); }
/** * @param ChildSession $session The ChildSession object to add. */ protected function doAddSession(ChildSession $session) { $this->collSessions[] = $session; $session->setAdministrator($this); }
/** * Filter the query by a related \CyberdenBundle\Model\Session object * * @param \CyberdenBundle\Model\Session|ObjectCollection $session the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildAdministratorQuery The current query, for fluid interface */ public function filterBySession($session, $comparison = null) { if ($session instanceof \CyberdenBundle\Model\Session) { return $this->addUsingAlias(AdministratorTableMap::COL_ID, $session->getAdministratorId(), $comparison); } elseif ($session instanceof ObjectCollection) { return $this->useSessionQuery()->filterByPrimaryKeys($session->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySession() only accepts arguments of type \\CyberdenBundle\\Model\\Session or Collection'); } }
/** * Exclude object from result * * @param ChildSession $session Object to remove from the list of results * * @return $this|ChildSessionQuery The current query, for fluid interface */ public function prune($session = null) { if ($session) { $this->addUsingAlias(SessionTableMap::COL_ID, $session->getId(), Criteria::NOT_EQUAL); } return $this; }