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

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

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

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

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

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

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

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

        return count($this->collPersonTeamLinks);
    }
public function countPersonTeamLinks ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collPersonTeamLinksPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collPersonTeamLinks || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collPersonTeamLinks ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getPersonTeamLinks ( ) ) ; } $ query = ChildPersonTeamLinkQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByPerson ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collPersonTeamLinks ) ; }
Returns the number of related PersonTeamLink objects.

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