示例#1
0
 /**
  * Exclude object from result
  *
  * @param   ChildPerformanceStatistic $performanceStatistic Object to remove from the list of results
  *
  * @return $this|ChildPerformanceStatisticQuery The current query, for fluid interface
  */
 public function prune($performanceStatistic = null)
 {
     if ($performanceStatistic) {
         $this->addUsingAlias(PerformanceStatisticTableMap::COL_ID, $performanceStatistic->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
示例#2
0
文件: Routine.php 项目: iuf/junia
 /**
  * Declares an association between this object and a ChildPerformanceStatistic object.
  *
  * @param  ChildPerformanceStatistic $v
  * @return $this|\iuf\junia\model\Routine The current object (for fluent API support)
  * @throws PropelException
  */
 public function setPerformanceMusicAndTimingStatistic(ChildPerformanceStatistic $v = null)
 {
     if ($v === null) {
         $this->setPerformanceMusicAndTimingStatisticId(NULL);
     } else {
         $this->setPerformanceMusicAndTimingStatisticId($v->getId());
     }
     $this->aPerformanceMusicAndTimingStatistic = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildPerformanceStatistic object, it will not be re-added.
     if ($v !== null) {
         $v->addRoutineRelatedByPerformanceMusicAndTimingStatisticId($this);
     }
     return $this;
 }
示例#3
0
文件: EventQuery.php 项目: iuf/junia
 /**
  * Filter the query by a related \iuf\junia\model\PerformanceStatistic object
  *
  * @param \iuf\junia\model\PerformanceStatistic|ObjectCollection $performanceStatistic 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 ChildEventQuery The current query, for fluid interface
  */
 public function filterByPerformanceMusicAndTimingStatistic($performanceStatistic, $comparison = null)
 {
     if ($performanceStatistic instanceof \iuf\junia\model\PerformanceStatistic) {
         return $this->addUsingAlias(EventTableMap::COL_PERFORMANCE_MUSIC_AND_TIMING_STATISTIC_ID, $performanceStatistic->getId(), $comparison);
     } elseif ($performanceStatistic instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(EventTableMap::COL_PERFORMANCE_MUSIC_AND_TIMING_STATISTIC_ID, $performanceStatistic->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPerformanceMusicAndTimingStatistic() only accepts arguments of type \\iuf\\junia\\model\\PerformanceStatistic or Collection');
     }
 }