/**
  * Filter the query by a related \Menu\Model\MenuI18n object
  *
  * @param \Menu\Model\MenuI18n|ObjectCollection $menuI18n The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildMenuI18nVersionQuery The current query, for fluid interface
  */
 public function filterByMenuI18n($menuI18n, $comparison = null)
 {
     if ($menuI18n instanceof \Menu\Model\MenuI18n) {
         return $this->addUsingAlias(MenuI18nVersionTableMap::ID, $menuI18n->getId(), $comparison);
     } elseif ($menuI18n instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(MenuI18nVersionTableMap::ID, $menuI18n->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByMenuI18n() only accepts arguments of type \\Menu\\Model\\MenuI18n or Collection');
     }
 }