mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-25 06:32:50 +00:00 
			
		
		
		
	fix cs
This commit is contained in:
		| @@ -1,33 +1,39 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace Chill\MainBundle\Repository; | ||||
|  | ||||
| use Chill\MainBundle\Entity\GeographicalUnit; | ||||
| use Chill\MainBundle\Entity\GeographicalUnitDTO; | ||||
| use Chill\MainBundle\Entity\GeographicalUnitLayer; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use Doctrine\ORM\EntityRepository; | ||||
|  | ||||
| class GeographicalUnitRepository implements GeographicalUnitRepositoryInterface | ||||
| { | ||||
|     private EntityRepository $repository; | ||||
|  | ||||
|     private EntityManagerInterface $em; | ||||
|  | ||||
|     private EntityRepository $repository; | ||||
|  | ||||
|     public function __construct(EntityManagerInterface $em) | ||||
|     { | ||||
|         $this->repository = $em->getRepository($this->getClassName()); | ||||
|         $this->em = $em; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     public function find($id): ?GeographicalUnit | ||||
|     { | ||||
|         return $this->repository->find($id); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Will return only partial object, where the @link{GeographicalUnit::geom} property is not loaded | ||||
|      * Will return only partial object, where the @see{GeographicalUnit::geom} property is not loaded. | ||||
|      * | ||||
|      * @return array|GeographicalUnit[] | ||||
|      */ | ||||
| @@ -56,4 +62,4 @@ class GeographicalUnitRepository implements GeographicalUnitRepositoryInterface | ||||
|     { | ||||
|         return GeographicalUnit::class; | ||||
|     } | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user