src/Slashworks/BackendBundle/Model/om/BaseUser.php
public function countUserCustomerRelations(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
    {
        $partial = $this->collUserCustomerRelationsPartial && !$this->isNew();
        if (null === $this->collUserCustomerRelations || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collUserCustomerRelations) {
                return 0;
            }

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

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

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

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

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

        return count($this->collUserCustomerRelations);
    }
public function countUserCustomerRelations ( Criteria $ criteria = null , $ distinct = false , PropelPDO $ con = null ) { $ partial = $ this -> collUserCustomerRelationsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collUserCustomerRelations || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collUserCustomerRelations ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getUserCustomerRelations ( ) ) ; } $ query = UserCustomerRelationQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByUser ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collUserCustomerRelations ) ; }
Returns the number of related UserCustomerRelation objects.

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