I'm doing a search that returns all my Entity data.
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 ) )