src/model/Base/Skill.php
public function countSkillReferences(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collSkillReferencesPartial && !$this->isNew();
        if (null === $this->collSkillReferences || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collSkillReferences) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getSkillReferences());
            }

            $query = ChildSkillReferenceQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterBySkill($this)
                ->count($con);
        }

        return count($this->collSkillReferences);
    }
public function countSkillReferences(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collSkillReferencesPartial && !$this->isNew();
        if (null === $this->collSkillReferences || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collSkillReferences) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getSkillReferences());
            }

            $query = ChildSkillReferenceQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterBySkill($this)
                ->count($con);
        }

        return count($this->collSkillReferences);
    }
public function countSkillReferences ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillReferencesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkillReferences || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collSkillReferences ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getSkillReferences ( ) ) ; } $ query = ChildSkillReferenceQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkill ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collSkillReferences ) ; }
Returns the number of related SkillReference objects.

@param      Criteria $criteria
@param      boolean $distinct
@param      ConnectionInterface $con
@return int             Count of related SkillReference objects.
@throws PropelException
Returns the number of related SkillReference objects .