src/Compra/Repository.php
public function findAllByAutenticacaoId($autenticacaoId)
    {
        $sql    = new Sql($this->dbAdapter);
        $select = $sql->select($this->tableName)->where(array('autenticacao_id' => $autenticacaoId));
        
        $stmt   = $sql->prepareStatementForSqlObject($select);
        $result = $stmt->execute();
        if ($result instanceof ResultInterface && $result->isQueryResult()) {
            $resultSet = new HydratingResultSet($this->hydrator, $this->prototipo);
        
            return $resultSet->initialize($result);
        }
        
        return array();
    }
public function findAllByAutenticacaoId($autenticacaoId)
    {
        $sql    = new Sql($this->dbAdapter);
        $select = $sql->select($this->tableName)->where(array('autenticacao_id' => $autenticacaoId));
        
        $stmt   = $sql->prepareStatementForSqlObject($select);
        $result = $stmt->execute();
        if ($result instanceof ResultInterface && $result->isQueryResult()) {
            $resultSet = new HydratingResultSet($this->hydrator, $this->prototipo);
        
            return $resultSet->initialize($result);
        }
        
        return array();
    }
public function findAllByAutenticacaoId ( $ autenticacaoId ) { $ sql = new Sql ( $ this -> dbAdapter ) ; $ select = $ sql -> select ( $ this -> tableName ) -> where ( array ( 'autenticacao_id' => $ autenticacaoId ) ) ; $ stmt = $ sql -> prepareStatementForSqlObject ( $ select ) ; $ result = $ stmt -> execute ( ) ; if ( $ result instanceof ResultInterface && $ result -> isQueryResult ( ) ) { $ resultSet = new HydratingResultSet ( $ this -> hydrator , $ this -> prototipo ) ; return $ resultSet -> initialize ( $ result ) ; } return array ( ) ; }
Encontra um iterador com todos as compras relacionadas a uma autenticacao no BD
@param int $autenticacaoId
@return Iterator
Encontra um iterador com todos as compras relacionadas a uma autenticacao no BD