Example #1
0
 /**
  * Filter the query by a related \gossi\trixionary\model\Video object
  *
  * @param \gossi\trixionary\model\Video|ObjectCollection $video 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 ChildSkillQuery The current query, for fluid interface
  */
 public function filterByFeaturedTutorial($video, $comparison = null)
 {
     if ($video instanceof \gossi\trixionary\model\Video) {
         return $this->addUsingAlias(SkillTableMap::COL_TUTORIAL_ID, $video->getId(), $comparison);
     } elseif ($video instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SkillTableMap::COL_TUTORIAL_ID, $video->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByFeaturedTutorial() only accepts arguments of type \\gossi\\trixionary\\model\\Video or Collection');
     }
 }