original_string: public function getCustomerGroupI18ns($criteria = null, ConnectionInterface $con = null)
      {
          $partial = $this->collCustomerGroupI18nsPartial && !$this->isNew();
          if (null === $this->collCustomerGroupI18ns || null !== $criteria  || $partial) {
              if ($this->isNew() && null === $this->collCustomerGroupI18ns) {
                  // return empty collection
                  $this->initCustomerGroupI18ns();
              } else {
                  $collCustomerGroupI18ns = ChildCustomerGroupI18nQuery::create(null, $criteria)
                      ->filterByCustomerGroup($this)
                      ->find($con);
  
                  if (null !== $criteria) {
                      if (false !== $this->collCustomerGroupI18nsPartial && count($collCustomerGroupI18ns)) {
                          $this->initCustomerGroupI18ns(false);
  
                          foreach ($collCustomerGroupI18ns as $obj) {
                              if (false == $this->collCustomerGroupI18ns->contains($obj)) {
                                  $this->collCustomerGroupI18ns->append($obj);
                              }
                          }
  
                          $this->collCustomerGroupI18nsPartial = true;
                      }
  
                      reset($collCustomerGroupI18ns);
  
                      return $collCustomerGroupI18ns;
                  }
  
                  if ($partial && $this->collCustomerGroupI18ns) {
                      foreach ($this->collCustomerGroupI18ns as $obj) {
                          if ($obj->isNew()) {
                              $collCustomerGroupI18ns[] = $obj;
                          }
                      }
                  }
  
                  $this->collCustomerGroupI18ns = $collCustomerGroupI18ns;
                  $this->collCustomerGroupI18nsPartial = false;
              }
          }
  
          return $this->collCustomerGroupI18ns;
      }
code: public function getCustomerGroupI18ns($criteria = null, ConnectionInterface $con = null)
      {
          $partial = $this->collCustomerGroupI18nsPartial && !$this->isNew();
          if (null === $this->collCustomerGroupI18ns || null !== $criteria  || $partial) {
              if ($this->isNew() && null === $this->collCustomerGroupI18ns) {
                  // return empty collection
                  $this->initCustomerGroupI18ns();
              } else {
                  $collCustomerGroupI18ns = ChildCustomerGroupI18nQuery::create(null, $criteria)
                      ->filterByCustomerGroup($this)
                      ->find($con);
  
                  if (null !== $criteria) {
                      if (false !== $this->collCustomerGroupI18nsPartial && count($collCustomerGroupI18ns)) {
                          $this->initCustomerGroupI18ns(false);
  
                          foreach ($collCustomerGroupI18ns as $obj) {
                              if (false == $this->collCustomerGroupI18ns->contains($obj)) {
                                  $this->collCustomerGroupI18ns->append($obj);
                              }
                          }
  
                          $this->collCustomerGroupI18nsPartial = true;
                      }
  
                      reset($collCustomerGroupI18ns);
  
                      return $collCustomerGroupI18ns;
                  }
  
                  if ($partial && $this->collCustomerGroupI18ns) {
                      foreach ($this->collCustomerGroupI18ns as $obj) {
                          if ($obj->isNew()) {
                              $collCustomerGroupI18ns[] = $obj;
                          }
                      }
                  }
  
                  $this->collCustomerGroupI18ns = $collCustomerGroupI18ns;
                  $this->collCustomerGroupI18nsPartial = false;
              }
          }
  
          return $this->collCustomerGroupI18ns;
      }
code_tokens: public function getCustomerGroupI18ns ( $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collCustomerGroupI18nsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collCustomerGroupI18ns || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collCustomerGroupI18ns ) { // return empty collection $ this -> initCustomerGroupI18ns ( ) ; } else { $ collCustomerGroupI18ns = ChildCustomerGroupI18nQuery :: create ( null , $ criteria ) -> filterByCustomerGroup ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collCustomerGroupI18nsPartial && count ( $ collCustomerGroupI18ns ) ) { $ this -> initCustomerGroupI18ns ( false ) ; foreach ( $ collCustomerGroupI18ns as $ obj ) { if ( false == $ this -> collCustomerGroupI18ns -> contains ( $ obj ) ) { $ this -> collCustomerGroupI18ns -> append ( $ obj ) ; } } $ this -> collCustomerGroupI18nsPartial = true ; } reset ( $ collCustomerGroupI18ns ) ; return $ collCustomerGroupI18ns ; } if ( $ partial && $ this -> collCustomerGroupI18ns ) { foreach ( $ this -> collCustomerGroupI18ns as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collCustomerGroupI18ns [ ] = $ obj ; } } } $ this -> collCustomerGroupI18ns = $ collCustomerGroupI18ns ; $ this -> collCustomerGroupI18nsPartial = false ; } } return $ this -> collCustomerGroupI18ns ; }
docstring: Gets an array of ChildCustomerGroupI18n 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 ChildCustomerGroup 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|ChildCustomerGroupI18n[] List of ChildCustomerGroupI18n objects
  @throws PropelException
docstring_tokens: Gets an array of ChildCustomerGroupI18n objects which contain a foreign key that references this object .