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

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

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

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

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

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

        return count($this->collApiLogs);
    }
public function countApiLogs ( Criteria $ criteria = null , $ distinct = false , PropelPDO $ con = null ) { $ partial = $ this -> collApiLogsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collApiLogs || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collApiLogs ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getApiLogs ( ) ) ; } $ query = ApiLogQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByRemoteApp ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collApiLogs ) ; }
Returns the number of related ApiLog objects.

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