public function getDealerContactI18ns($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerContactI18nsPartial && !$this->isNew();
        if (null === $this->collDealerContactI18ns || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collDealerContactI18ns) {
                // return empty collection
                $this->initDealerContactI18ns();
            } else {
                $collDealerContactI18ns = ChildDealerContactI18nQuery::create(null, $criteria)
                    ->filterByDealerContact($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collDealerContactI18nsPartial && count($collDealerContactI18ns)) {
                        $this->initDealerContactI18ns(false);

                        foreach ($collDealerContactI18ns as $obj) {
                            if (false == $this->collDealerContactI18ns->contains($obj)) {
                                $this->collDealerContactI18ns->append($obj);
                            }
                        }

                        $this->collDealerContactI18nsPartial = true;
                    }

                    reset($collDealerContactI18ns);

                    return $collDealerContactI18ns;
                }

                if ($partial && $this->collDealerContactI18ns) {
                    foreach ($this->collDealerContactI18ns as $obj) {
                        if ($obj->isNew()) {
                            $collDealerContactI18ns[] = $obj;
                        }
                    }
                }

                $this->collDealerContactI18ns = $collDealerContactI18ns;
                $this->collDealerContactI18nsPartial = false;
            }
        }

        return $this->collDealerContactI18ns;
    }
public function getDealerContactI18ns($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerContactI18nsPartial && !$this->isNew();
        if (null === $this->collDealerContactI18ns || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collDealerContactI18ns) {
                // return empty collection
                $this->initDealerContactI18ns();
            } else {
                $collDealerContactI18ns = ChildDealerContactI18nQuery::create(null, $criteria)
                    ->filterByDealerContact($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collDealerContactI18nsPartial && count($collDealerContactI18ns)) {
                        $this->initDealerContactI18ns(false);

                        foreach ($collDealerContactI18ns as $obj) {
                            if (false == $this->collDealerContactI18ns->contains($obj)) {
                                $this->collDealerContactI18ns->append($obj);
                            }
                        }

                        $this->collDealerContactI18nsPartial = true;
                    }

                    reset($collDealerContactI18ns);

                    return $collDealerContactI18ns;
                }

                if ($partial && $this->collDealerContactI18ns) {
                    foreach ($this->collDealerContactI18ns as $obj) {
                        if ($obj->isNew()) {
                            $collDealerContactI18ns[] = $obj;
                        }
                    }
                }

                $this->collDealerContactI18ns = $collDealerContactI18ns;
                $this->collDealerContactI18nsPartial = false;
            }
        }

        return $this->collDealerContactI18ns;
    }
public function getDealerContactI18ns ( $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collDealerContactI18nsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collDealerContactI18ns || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collDealerContactI18ns ) { // return empty collection $ this -> initDealerContactI18ns ( ) ; } else { $ collDealerContactI18ns = ChildDealerContactI18nQuery :: create ( null , $ criteria ) -> filterByDealerContact ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collDealerContactI18nsPartial && count ( $ collDealerContactI18ns ) ) { $ this -> initDealerContactI18ns ( false ) ; foreach ( $ collDealerContactI18ns as $ obj ) { if ( false == $ this -> collDealerContactI18ns -> contains ( $ obj ) ) { $ this -> collDealerContactI18ns -> append ( $ obj ) ; } } $ this -> collDealerContactI18nsPartial = true ; } reset ( $ collDealerContactI18ns ) ; return $ collDealerContactI18ns ; } if ( $ partial && $ this -> collDealerContactI18ns ) { foreach ( $ this -> collDealerContactI18ns as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collDealerContactI18ns [ ] = $ obj ; } } } $ this -> collDealerContactI18ns = $ collDealerContactI18ns ; $ this -> collDealerContactI18nsPartial = false ; } } return $ this -> collDealerContactI18ns ; }
Gets an array of ChildDealerContactI18n objects which contain a foreign key that references this object.

If the $criteria is not null, it is used to always fetch the results from the database.
Otherwise the results are fetched from the database the first time, then cached.
Next time the same method is called without $criteria, the cached collection is returned.
If this ChildDealerContact is new, it will return
an empty collection or the current collection; the criteria is ignored on a new object.

@param      Criteria $criteria optional Criteria object to narrow the query
@param      ConnectionInterface $con optional connection object
@return Collection|ChildDealerContactI18n[] List of ChildDealerContactI18n objects
@throws PropelException
Gets an array of ChildDealerContactI18n objects which contain a foreign key that references this object .