示例#1
0
 /**
  * Internal mechanism to set the MultipleOf id
  * 
  * @param Skill $model
  * @param mixed $relatedId
  */
 protected function doSetMultipleOfId(Skill $model, $relatedId)
 {
     if ($model->getMultipleOfId() !== $relatedId) {
         $model->setMultipleOfId($relatedId);
         return true;
     }
     return false;
 }
示例#2
0
 /**
  * Filter the query by a related \gossi\trixionary\model\Skill object
  *
  * @param \gossi\trixionary\model\Skill|ObjectCollection $skill 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 filterByMultiple($skill, $comparison = null)
 {
     if ($skill instanceof \gossi\trixionary\model\Skill) {
         return $this->addUsingAlias(SkillTableMap::COL_ID, $skill->getMultipleOfId(), $comparison);
     } elseif ($skill instanceof ObjectCollection) {
         return $this->useMultipleQuery()->filterByPrimaryKeys($skill->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByMultiple() only accepts arguments of type \\gossi\\trixionary\\model\\Skill or Collection');
     }
 }