Beispiel #1
0
 /**
  * Declares an association between this object and a ChildStartgroup object.
  *
  * @param  ChildStartgroup $v
  * @return $this|\iuf\junia\model\Routine The current object (for fluent API support)
  * @throws PropelException
  */
 public function setStartgroup(ChildStartgroup $v = null)
 {
     if ($v === null) {
         $this->setStartgroupId(NULL);
     } else {
         $this->setStartgroupId($v->getId());
     }
     $this->aStartgroup = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildStartgroup object, it will not be re-added.
     if ($v !== null) {
         $v->addRoutine($this);
     }
     return $this;
 }
Beispiel #2
0
 /**
  * Filter the query by a related \iuf\junia\model\Startgroup object
  *
  * @param \iuf\junia\model\Startgroup|ObjectCollection $startgroup 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 ChildJudgeQuery The current query, for fluid interface
  */
 public function filterByStartgroup($startgroup, $comparison = null)
 {
     if ($startgroup instanceof \iuf\junia\model\Startgroup) {
         return $this->addUsingAlias(JudgeTableMap::COL_STARTGROUP_ID, $startgroup->getId(), $comparison);
     } elseif ($startgroup instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(JudgeTableMap::COL_STARTGROUP_ID, $startgroup->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByStartgroup() only accepts arguments of type \\iuf\\junia\\model\\Startgroup or Collection');
     }
 }
Beispiel #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildStartgroup $startgroup Object to remove from the list of results
  *
  * @return $this|ChildStartgroupQuery The current query, for fluid interface
  */
 public function prune($startgroup = null)
 {
     if ($startgroup) {
         $this->addUsingAlias(StartgroupTableMap::COL_ID, $startgroup->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }