I just got the latest updates of the ZfcDatagrid, and I am using it with Doctrin2, just selecting from one entity, and I got this error after the update:
Not all identifier properties can be found in the ResultSetMapping: id
$qb = $this->getEntityManager()->createQueryBuilder();
$qb->select('p')->from('Permissions', 'p');
$dataGrid = $this->getServiceLocator()->get('zfcDatagrid');
$dataGrid->setDefaultItemsPerPage(50);
$dataGrid->setDataSource($qb);
$permId = new Column\Standard('id', 'p');
$permId->setIdentity();
$dataGrid->addColumn($permId);
$permissionCode = new Column\Standard('permissionCode', 'p');
$permissionCode->setLabel('Permission Code');
$permissionCode->setSortDefault(1, 'ASC');
$permissionCode->addStyle(new Style\Bold());
$dataGrid->addColumn($permissionCode);
$permissionDesc = new Column\Standard('permissionDesc', 'p');
$permissionDesc->setLabel('Permission Desc');
$dataGrid->addColumn($permissionDesc);
$dataGrid->execute();
return $dataGrid->getResponse();
I noticed that there has been some changes in Doctrine files, do I have to change anything in my code?