public function find($id, $inDeleted = false)
    {
        $qb = $this->db->createQueryBuilder();

        $qb->select($this->getSelect($this->profile))
            ->from($this->table, 't')
            ->where('t.'.$this->primaryKey." = :id");

        $this->addJoins($qb, $this->getJoins($this->profile));
        $params = $this->addFilters($qb, $this->getFilters($this->profile));
        $this->addGrouping($qb, $this->getGroupings($this->profile));

        $params['id'] = $id;

        return $this->getRow($qb, $params, $inDeleted);
    }
public function find($id, $inDeleted = false)
    {
        $qb = $this->db->createQueryBuilder();

        $qb->select($this->getSelect($this->profile))
            ->from($this->table, 't')
            ->where('t.'.$this->primaryKey." = :id");

        $this->addJoins($qb, $this->getJoins($this->profile));
        $params = $this->addFilters($qb, $this->getFilters($this->profile));
        $this->addGrouping($qb, $this->getGroupings($this->profile));

        $params['id'] = $id;

        return $this->getRow($qb, $params, $inDeleted);
    }
public function find ( $ id , $ inDeleted = false ) { $ qb = $ this -> db -> createQueryBuilder ( ) ; $ qb -> select ( $ this -> getSelect ( $ this -> profile ) ) -> from ( $ this -> table , 't' ) -> where ( 't.' . $ this -> primaryKey . " = :id" ) ; $ this -> addJoins ( $ qb , $ this -> getJoins ( $ this -> profile ) ) ; $ params = $ this -> addFilters ( $ qb , $ this -> getFilters ( $ this -> profile ) ) ; $ this -> addGrouping ( $ qb , $ this -> getGroupings ( $ this -> profile ) ) ; $ params [ 'id' ] = $ id ; return $ this -> getRow ( $ qb , $ params , $ inDeleted ) ; }
Localiza um registro unico pelo seu id.

@param integer $id
@param bool    $inDeleted

@return array
Localiza um registro unico pelo seu id .