Exemplo n.º 1
0
 /**
  * Filter the query by a related \iuf\junia\model\Routine object
  *
  * @param \iuf\junia\model\Routine|ObjectCollection $routine 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 ChildPerformanceScoreQuery The current query, for fluid interface
  */
 public function filterByRoutine($routine, $comparison = null)
 {
     if ($routine instanceof \iuf\junia\model\Routine) {
         return $this->addUsingAlias(PerformanceScoreTableMap::COL_ROUTINE_ID, $routine->getId(), $comparison);
     } elseif ($routine instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(PerformanceScoreTableMap::COL_ROUTINE_ID, $routine->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRoutine() only accepts arguments of type \\iuf\\junia\\model\\Routine or Collection');
     }
 }
Exemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildRoutine $routine Object to remove from the list of results
  *
  * @return $this|ChildRoutineQuery The current query, for fluid interface
  */
 public function prune($routine = null)
 {
     if ($routine) {
         $this->addUsingAlias(RoutineTableMap::COL_ID, $routine->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemplo n.º 3
0
 /**
  * Declares an association between this object and a ChildRoutine object.
  *
  * @param  ChildRoutine $v
  * @return $this|\iuf\junia\model\PerformanceScore The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRoutine(ChildRoutine $v = null)
 {
     if ($v === null) {
         $this->setRoutineId(NULL);
     } else {
         $this->setRoutineId($v->getId());
     }
     $this->aRoutine = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRoutine object, it will not be re-added.
     if ($v !== null) {
         $v->addPerformanceScore($this);
     }
     return $this;
 }