original_string: public function getSkills(Criteria $criteria = null, ConnectionInterface $con = null)
      {
          $partial = $this->collSkillsPartial && !$this->isNew();
          if (null === $this->collSkills || null !== $criteria || $partial) {
              if ($this->isNew()) {
                  // return empty collection
                  if (null === $this->collSkills) {
                      $this->initSkills();
                  }
              } else {
  
                  $query = ChildSkillQuery::create(null, $criteria)
                      ->filterByReference($this);
                  $collSkills = $query->find($con);
                  if (null !== $criteria) {
                      return $collSkills;
                  }
  
                  if ($partial && $this->collSkills) {
                      //make sure that already added objects gets added to the list of the database.
                      foreach ($this->collSkills as $obj) {
                          if (!$collSkills->contains($obj)) {
                              $collSkills[] = $obj;
                          }
                      }
                  }
  
                  $this->collSkills = $collSkills;
                  $this->collSkillsPartial = false;
              }
          }
  
          return $this->collSkills;
      }
code: public function getSkills(Criteria $criteria = null, ConnectionInterface $con = null)
      {
          $partial = $this->collSkillsPartial && !$this->isNew();
          if (null === $this->collSkills || null !== $criteria || $partial) {
              if ($this->isNew()) {
                  // return empty collection
                  if (null === $this->collSkills) {
                      $this->initSkills();
                  }
              } else {
  
                  $query = ChildSkillQuery::create(null, $criteria)
                      ->filterByReference($this);
                  $collSkills = $query->find($con);
                  if (null !== $criteria) {
                      return $collSkills;
                  }
  
                  if ($partial && $this->collSkills) {
                      //make sure that already added objects gets added to the list of the database.
                      foreach ($this->collSkills as $obj) {
                          if (!$collSkills->contains($obj)) {
                              $collSkills[] = $obj;
                          }
                      }
                  }
  
                  $this->collSkills = $collSkills;
                  $this->collSkillsPartial = false;
              }
          }
  
          return $this->collSkills;
      }
code_tokens: public function getSkills ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkills || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) ) { // return empty collection if ( null === $ this -> collSkills ) { $ this -> initSkills ( ) ; } } else { $ query = ChildSkillQuery :: create ( null , $ criteria ) -> filterByReference ( $ this ) ; $ collSkills = $ query -> find ( $ con ) ; if ( null !== $ criteria ) { return $ collSkills ; } if ( $ partial && $ this -> collSkills ) { //make sure that already added objects gets added to the list of the database. foreach ( $ this -> collSkills as $ obj ) { if ( ! $ collSkills -> contains ( $ obj ) ) { $ collSkills [ ] = $ obj ; } } } $ this -> collSkills = $ collSkills ; $ this -> collSkillsPartial = false ; } } return $ this -> collSkills ; }
docstring: Gets a collection of ChildSkill objects related by a many-to-many relationship
  to the current object by way of the kk_trixionary_skill_reference cross-reference table.
  
  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 ChildReference is new, it will return
  an empty collection or the current collection; the criteria is ignored on a new object.
  
  @param      Criteria $criteria Optional query object to filter the query
  @param      ConnectionInterface $con Optional connection object
  
  @return ObjectCollection|ChildSkill[] List of ChildSkill objects
docstring_tokens: Gets a collection of ChildSkill objects related by a many - to - many relationship to the current object by way of the kk_trixionary_skill_reference cross - reference table .