/** * Returns a new CyclicalEventHasListQuery object. * * @param string $modelAlias The alias of a model in the query * @param CyclicalEventHasListQuery|Criteria $criteria Optional Criteria to build the query from * * @return CyclicalEventHasListQuery */ public static function create($modelAlias = null, $criteria = null) { if ($criteria instanceof CyclicalEventHasListQuery) { return $criteria; } $query = new CyclicalEventHasListQuery(null, null, $modelAlias); if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; }
/** * If this collection has already been initialized with * an identical criteria, it returns the collection. * Otherwise if this CustomLists is new, it will return * an empty collection; or if this CustomLists has previously * been saved, it will retrieve related CyclicalEventHasLists from storage. * * This method is protected by default in order to keep the public * api reasonable. You can provide public methods for those you * actually need in CustomLists. * * @param Criteria $criteria optional Criteria object to narrow the query * @param PropelPDO $con optional connection object * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN) * @return PropelObjectCollection|CyclicalEventHasList[] List of CyclicalEventHasList objects */ public function getCyclicalEventHasListsJoinCyclicalEvents($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $query = CyclicalEventHasListQuery::create(null, $criteria); $query->joinWith('CyclicalEvents', $join_behavior); return $this->getCyclicalEventHasLists($query, $con); }