/** * Exclude object from result * * @param ChildMenuItemI18n $menuItemI18n Object to remove from the list of results * * @return ChildMenuItemI18nQuery The current query, for fluid interface */ public function prune($menuItemI18n = null) { if ($menuItemI18n) { $this->addUsingAlias(MenuItemI18nTableMap::ID, $menuItemI18n->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Menu\Model\MenuItemI18n object * * @param \Menu\Model\MenuItemI18n|ObjectCollection $menuItemI18n The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildMenuItemI18nVersionQuery The current query, for fluid interface */ public function filterByMenuItemI18n($menuItemI18n, $comparison = null) { if ($menuItemI18n instanceof \Menu\Model\MenuItemI18n) { return $this->addUsingAlias(MenuItemI18nVersionTableMap::ID, $menuItemI18n->getId(), $comparison); } elseif ($menuItemI18n instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(MenuItemI18nVersionTableMap::ID, $menuItemI18n->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByMenuItemI18n() only accepts arguments of type \\Menu\\Model\\MenuItemI18n or Collection'); } }
/** * Declares an association between this object and a ChildMenuItemI18n object. * * @param ChildMenuItemI18n $v * @return \Menu\Model\MenuItemI18nVersion The current object (for fluent API support) * @throws PropelException */ public function setMenuItemI18n(ChildMenuItemI18n $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aMenuItemI18n = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildMenuItemI18n object, it will not be re-added. if ($v !== null) { $v->addMenuItemI18nVersion($this); } return $this; }