public function getIndexEngineIndexVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collIndexEngineIndexVersionsPartial && !$this->isNew();
        if (null === $this->collIndexEngineIndexVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collIndexEngineIndexVersions) {
                // return empty collection
                $this->initIndexEngineIndexVersions();
            } else {
                $collIndexEngineIndexVersions = ChildIndexEngineIndexVersionQuery::create(null, $criteria)
                    ->filterByIndexEngineIndex($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collIndexEngineIndexVersionsPartial && count($collIndexEngineIndexVersions)) {
                        $this->initIndexEngineIndexVersions(false);

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

                        $this->collIndexEngineIndexVersionsPartial = true;
                    }

                    reset($collIndexEngineIndexVersions);

                    return $collIndexEngineIndexVersions;
                }

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

                $this->collIndexEngineIndexVersions = $collIndexEngineIndexVersions;
                $this->collIndexEngineIndexVersionsPartial = false;
            }
        }

        return $this->collIndexEngineIndexVersions;
    }
public function getIndexEngineIndexVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collIndexEngineIndexVersionsPartial && !$this->isNew();
        if (null === $this->collIndexEngineIndexVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collIndexEngineIndexVersions) {
                // return empty collection
                $this->initIndexEngineIndexVersions();
            } else {
                $collIndexEngineIndexVersions = ChildIndexEngineIndexVersionQuery::create(null, $criteria)
                    ->filterByIndexEngineIndex($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collIndexEngineIndexVersionsPartial && count($collIndexEngineIndexVersions)) {
                        $this->initIndexEngineIndexVersions(false);

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

                        $this->collIndexEngineIndexVersionsPartial = true;
                    }

                    reset($collIndexEngineIndexVersions);

                    return $collIndexEngineIndexVersions;
                }

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

                $this->collIndexEngineIndexVersions = $collIndexEngineIndexVersions;
                $this->collIndexEngineIndexVersionsPartial = false;
            }
        }

        return $this->collIndexEngineIndexVersions;
    }
public function getIndexEngineIndexVersions ( $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collIndexEngineIndexVersionsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collIndexEngineIndexVersions || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collIndexEngineIndexVersions ) { // return empty collection $ this -> initIndexEngineIndexVersions ( ) ; } else { $ collIndexEngineIndexVersions = ChildIndexEngineIndexVersionQuery :: create ( null , $ criteria ) -> filterByIndexEngineIndex ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collIndexEngineIndexVersionsPartial && count ( $ collIndexEngineIndexVersions ) ) { $ this -> initIndexEngineIndexVersions ( false ) ; foreach ( $ collIndexEngineIndexVersions as $ obj ) { if ( false == $ this -> collIndexEngineIndexVersions -> contains ( $ obj ) ) { $ this -> collIndexEngineIndexVersions -> append ( $ obj ) ; } } $ this -> collIndexEngineIndexVersionsPartial = true ; } reset ( $ collIndexEngineIndexVersions ) ; return $ collIndexEngineIndexVersions ; } if ( $ partial && $ this -> collIndexEngineIndexVersions ) { foreach ( $ this -> collIndexEngineIndexVersions as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collIndexEngineIndexVersions [ ] = $ obj ; } } } $ this -> collIndexEngineIndexVersions = $ collIndexEngineIndexVersions ; $ this -> collIndexEngineIndexVersionsPartial = false ; } } return $ this -> collIndexEngineIndexVersions ; }
Gets an array of ChildIndexEngineIndexVersion 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 ChildIndexEngineIndex 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|ChildIndexEngineIndexVersion[] List of ChildIndexEngineIndexVersion objects
@throws PropelException
Gets an array of ChildIndexEngineIndexVersion objects which contain a foreign key that references this object .