Set a condition to get all the pictures with the extension * .png from the database.
Method:
public function getFotoByParentIdWithPng () { $asutpService = $this->getAsutpRepository(); $foto = ['parentId' => '2', 'image' => 'sh1.png']; return $asutpService->findBy($foto); } it returns from the database all the names of pictures that meet two criteria.
How to correctly write the second criterion in the array, so that all files with the .png extension are output , and not just like the one sh1.png file now ?