/** * Adds a JOIN clause to the query and hydrates the related I18n object. * Shortcut for $c->joinI18n($locale)->with() * * @param string $locale Locale to use for the join condition, e.g. 'fr_FR' * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. * * @return The current query, for fluid interface */ public function joinWithI18n($locale = '', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) ->with(''); $this->with['']->setIsWithOneToMany(false); return $this; }