omusico / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bvb_Grid_Source_Doctrine2 detail view bug #758

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in Bvb_Grid_Source_Doctrine2, on line 719 is method that gives array with 
results, but it should be only one array with one results so it should be 

public function fetchDetail(array $where)
    {
        $qb = $this->getQueryBuilder();

        /**
         * Remove these since we are trying to retrieve
         * a specific row
         */
        $qb->setFirstResult(null)->setMaxResults(null);

        $this->_createWhereConditions($qb, $where);

        ;
        return reset($this->execute()); //this is important
    }

Original issue reported on code.google.com by labirin...@post.sk on 2 Sep 2011 at 2:16

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1858.

Original comment by bento.vi...@gmail.com on 2 Sep 2011 at 10:09