0
I am doing a search that returns all the data of my Entity.
,it happens that it returns me all the data but with the same id, but I checked the database the ids are different.
.$entityManager->clear(); print_r($entityManager->getRepository('models\AlarmesNcc')->findAll()); $entityManager->flush();
returning
Array ( [0] => models\AlarmesNcc Object ( [id:models\AlarmesNcc:private] => 1 /aqui nesta linha [criated:models\AlarmesNcc:private] => dd [severity:models\AlarmesNcc:private] => ssss [deviceService:models\AlarmesNcc:private] => ss [details:models\AlarmesNcc:private] => sss [usuario:models\AlarmesNcc:private] => 1 ) [1] => models\AlarmesNcc Object ( [id:models\AlarmesNcc:private] => 1 /aqui nesta linha [criated:models\AlarmesNcc:private] => dd [severity:models\AlarmesNcc:private] => ssss [deviceService:models\AlarmesNcc:private] => ss [details:models\AlarmesNcc:private] => sss [usuario:models\AlarmesNcc:private] => 1 ) )