propel/generated-classes/Base/User.php
/**
     * Returns the number of related Profile objects.
     *
     * @param      Criteria $criteria
     * @param      boolean $distinct
     * @param      ConnectionInterface $con
     * @return int             Count of related Profile objects.
     * @throws PropelException
     */
Returns the number of related Profile objects.
@param      Criteria $criteria
@param      boolean $distinct
@param      ConnectionInterface $con
@return int             Count of related Profile objects.
Returns the number of related Profile objects . @param Criteria $criteria @param boolean $distinct @param ConnectionInterface $con @return int Count of related Profile objects .
public function countProfiles(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collProfilesPartial && !$this->isNew();
        if (null === $this->collProfiles || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collProfiles) {
                return 0;
            }
            if ($partial && !$criteria) {
                return count($this->getProfiles());
            }
            $query = ChildProfileQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }
            return $query
                ->filterByUser($this)
                ->count($con);
        }
        return count($this->collProfiles);
    }
public function countProfiles ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collProfilesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collProfiles || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collProfiles ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getProfiles ( ) ) ; } $ query = ChildProfileQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByUser ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collProfiles ) ; }
Returns the number of related Profile objects.
Returns the number of related Profile objects .