src/Slashworks/AppBundle/Model/om/BaseCountry.php
public function countCustomers(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
    {
        $partial = $this->collCustomersPartial && !$this->isNew();
        if (null === $this->collCustomers || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collCustomers) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getCustomers());
            }
            $query = CustomerQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

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

        return count($this->collCustomers);
    }
public function countCustomers(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
    {
        $partial = $this->collCustomersPartial && !$this->isNew();
        if (null === $this->collCustomers || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collCustomers) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getCustomers());
            }
            $query = CustomerQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

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

        return count($this->collCustomers);
    }
public function countCustomers ( Criteria $ criteria = null , $ distinct = false , PropelPDO $ con = null ) { $ partial = $ this -> collCustomersPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collCustomers || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collCustomers ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getCustomers ( ) ) ; } $ query = CustomerQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByCountry ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collCustomers ) ; }
Returns the number of related Customer objects.

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