/** * Filter the query by a related \Thelia\Model\ModuleConfig object * * @param \Thelia\Model\ModuleConfig|ObjectCollection $moduleConfig the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildModuleQuery The current query, for fluid interface */ public function filterByModuleConfig($moduleConfig, $comparison = null) { if ($moduleConfig instanceof \Thelia\Model\ModuleConfig) { return $this->addUsingAlias(ModuleTableMap::ID, $moduleConfig->getModuleId(), $comparison); } elseif ($moduleConfig instanceof ObjectCollection) { return $this->useModuleConfigQuery()->filterByPrimaryKeys($moduleConfig->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByModuleConfig() only accepts arguments of type \\Thelia\\Model\\ModuleConfig or Collection'); } }
/** * Declares an association between this object and a ChildModuleConfig object. * * @param ChildModuleConfig $v * @return \Thelia\Model\ModuleConfigI18n The current object (for fluent API support) * @throws PropelException */ public function setModuleConfig(ChildModuleConfig $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aModuleConfig = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildModuleConfig object, it will not be re-added. if ($v !== null) { $v->addModuleConfigI18n($this); } return $this; }
/** * Exclude object from result * * @param ChildModuleConfig $moduleConfig Object to remove from the list of results * * @return ChildModuleConfigQuery The current query, for fluid interface */ public function prune($moduleConfig = null) { if ($moduleConfig) { $this->addUsingAlias(ModuleConfigTableMap::ID, $moduleConfig->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Thelia\Model\ModuleConfig object * * @param \Thelia\Model\ModuleConfig|ObjectCollection $moduleConfig The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildModuleConfigI18nQuery The current query, for fluid interface */ public function filterByModuleConfig($moduleConfig, $comparison = null) { if ($moduleConfig instanceof \Thelia\Model\ModuleConfig) { return $this->addUsingAlias(ModuleConfigI18nTableMap::ID, $moduleConfig->getId(), $comparison); } elseif ($moduleConfig instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ModuleConfigI18nTableMap::ID, $moduleConfig->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByModuleConfig() only accepts arguments of type \\Thelia\\Model\\ModuleConfig or Collection'); } }