示例#1
0
 /**
  * Filter the query by a related \gossi\trixionary\model\Picture object
  *
  * @param \gossi\trixionary\model\Picture|ObjectCollection $picture the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildSkillQuery The current query, for fluid interface
  */
 public function filterByPicture($picture, $comparison = null)
 {
     if ($picture instanceof \gossi\trixionary\model\Picture) {
         return $this->addUsingAlias(SkillTableMap::COL_ID, $picture->getSkillId(), $comparison);
     } elseif ($picture instanceof ObjectCollection) {
         return $this->usePictureQuery()->filterByPrimaryKeys($picture->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPicture() only accepts arguments of type \\gossi\\trixionary\\model\\Picture or Collection');
     }
 }