I've array of objects
$states = $this->getDoctrine()->getRepository(LocationState::class)->findAll();
How can I check if $states
contains object with data?
LocationState {#102960 ▼
-id: 1
-ident: "02"
-name: "NAME"
-country: LocationCountry {#102992 ▶}
}
This is no ArrayCollection but Array of Objects.