src/Slashworks/AppBundle/Model/om/BaseCustomer.php
public function getRemoteApps($criteria = null, PropelPDO $con = null)
    {
        $partial = $this->collRemoteAppsPartial && !$this->isNew();
        if (null === $this->collRemoteApps || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collRemoteApps) {
                // return empty collection
                $this->initRemoteApps();
            } else {
                $collRemoteApps = RemoteAppQuery::create(null, $criteria)
                    ->filterByCustomer($this)
                    ->find($con);
                if (null !== $criteria) {
                    if (false !== $this->collRemoteAppsPartial && count($collRemoteApps)) {
                      $this->initRemoteApps(false);

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

                      $this->collRemoteAppsPartial = true;
                    }

                    $collRemoteApps->getInternalIterator()->rewind();

                    return $collRemoteApps;
                }

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

                $this->collRemoteApps = $collRemoteApps;
                $this->collRemoteAppsPartial = false;
            }
        }

        return $this->collRemoteApps;
    }
public function getRemoteApps($criteria = null, PropelPDO $con = null)
    {
        $partial = $this->collRemoteAppsPartial && !$this->isNew();
        if (null === $this->collRemoteApps || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collRemoteApps) {
                // return empty collection
                $this->initRemoteApps();
            } else {
                $collRemoteApps = RemoteAppQuery::create(null, $criteria)
                    ->filterByCustomer($this)
                    ->find($con);
                if (null !== $criteria) {
                    if (false !== $this->collRemoteAppsPartial && count($collRemoteApps)) {
                      $this->initRemoteApps(false);

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

                      $this->collRemoteAppsPartial = true;
                    }

                    $collRemoteApps->getInternalIterator()->rewind();

                    return $collRemoteApps;
                }

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

                $this->collRemoteApps = $collRemoteApps;
                $this->collRemoteAppsPartial = false;
            }
        }

        return $this->collRemoteApps;
    }
public function getRemoteApps ( $ criteria = null , PropelPDO $ con = null ) { $ partial = $ this -> collRemoteAppsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collRemoteApps || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collRemoteApps ) { // return empty collection $ this -> initRemoteApps ( ) ; } else { $ collRemoteApps = RemoteAppQuery :: create ( null , $ criteria ) -> filterByCustomer ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collRemoteAppsPartial && count ( $ collRemoteApps ) ) { $ this -> initRemoteApps ( false ) ; foreach ( $ collRemoteApps as $ obj ) { if ( false == $ this -> collRemoteApps -> contains ( $ obj ) ) { $ this -> collRemoteApps -> append ( $ obj ) ; } } $ this -> collRemoteAppsPartial = true ; } $ collRemoteApps -> getInternalIterator ( ) -> rewind ( ) ; return $ collRemoteApps ; } if ( $ partial && $ this -> collRemoteApps ) { foreach ( $ this -> collRemoteApps as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collRemoteApps [ ] = $ obj ; } } } $ this -> collRemoteApps = $ collRemoteApps ; $ this -> collRemoteAppsPartial = false ; } } return $ this -> collRemoteApps ; }
Gets an array of RemoteApp 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 Customer 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 PropelPDO $con optional connection object
@return PropelObjectCollection|RemoteApp[] List of RemoteApp objects
@throws PropelException
Gets an array of RemoteApp objects which contain a foreign key that references this object .