diff --git a/src/Bundle/ChillMainBundle/Entity/Address.php b/src/Bundle/ChillMainBundle/Entity/Address.php index 2fc024e8c..3bbbfa368 100644 --- a/src/Bundle/ChillMainBundle/Entity/Address.php +++ b/src/Bundle/ChillMainBundle/Entity/Address.php @@ -11,7 +11,7 @@ use Chill\ThirdPartyBundle\Entity\ThirdParty; /** * Address * - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="chill_main_address") * @ORM\HasLifecycleCallbacks() */ diff --git a/src/Bundle/ChillMainBundle/Entity/Country.php b/src/Bundle/ChillMainBundle/Entity/Country.php index 932944d03..043a4e82e 100644 --- a/src/Bundle/ChillMainBundle/Entity/Country.php +++ b/src/Bundle/ChillMainBundle/Entity/Country.php @@ -8,7 +8,7 @@ use Symfony\Component\Serializer\Annotation\Groups; /** * Country * - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="country") * @ORM\Cache(usage="READ_ONLY", region="country_cache_region") * @ORM\HasLifecycleCallbacks() diff --git a/src/Bundle/ChillMainBundle/Entity/GroupCenter.php b/src/Bundle/ChillMainBundle/Entity/GroupCenter.php index fee1081ff..a7700001f 100644 --- a/src/Bundle/ChillMainBundle/Entity/GroupCenter.php +++ b/src/Bundle/ChillMainBundle/Entity/GroupCenter.php @@ -27,7 +27,7 @@ use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; /** - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="group_centers") * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region") * diff --git a/src/Bundle/ChillMainBundle/Entity/Language.php b/src/Bundle/ChillMainBundle/Entity/Language.php index 2f59eda6d..22895b61b 100644 --- a/src/Bundle/ChillMainBundle/Entity/Language.php +++ b/src/Bundle/ChillMainBundle/Entity/Language.php @@ -25,7 +25,7 @@ use Doctrine\ORM\Mapping as ORM; /** * Language * - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="language") * @ORM\Cache(usage="READ_ONLY", region="language_cache_region") * @ORM\HasLifecycleCallbacks() diff --git a/src/Bundle/ChillMainBundle/Entity/PermissionsGroup.php b/src/Bundle/ChillMainBundle/Entity/PermissionsGroup.php index 8be256595..456ee29e3 100644 --- a/src/Bundle/ChillMainBundle/Entity/PermissionsGroup.php +++ b/src/Bundle/ChillMainBundle/Entity/PermissionsGroup.php @@ -27,7 +27,7 @@ use Chill\MainBundle\Entity\RoleScope; use Symfony\Component\Validator\Context\ExecutionContextInterface; /** - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="permission_groups") * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region") * diff --git a/src/Bundle/ChillMainBundle/Entity/RoleScope.php b/src/Bundle/ChillMainBundle/Entity/RoleScope.php index 9944a96cc..7842267a9 100644 --- a/src/Bundle/ChillMainBundle/Entity/RoleScope.php +++ b/src/Bundle/ChillMainBundle/Entity/RoleScope.php @@ -25,7 +25,7 @@ use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; /** - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="role_scopes") * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region") * diff --git a/src/Bundle/ChillMainBundle/Entity/Scope.php b/src/Bundle/ChillMainBundle/Entity/Scope.php index aba06ab7e..ba11a1842 100644 --- a/src/Bundle/ChillMainBundle/Entity/Scope.php +++ b/src/Bundle/ChillMainBundle/Entity/Scope.php @@ -28,7 +28,7 @@ use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Serializer\Annotation\DiscriminatorMap; /** - * @ORM\Entity() + * @ORM\Entity * @ORM\Table(name="scopes") * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region") * @DiscriminatorMap(typeProperty="type", mapping={ diff --git a/src/Bundle/ChillMainBundle/Repository/AddressRepository.php b/src/Bundle/ChillMainBundle/Repository/AddressRepository.php new file mode 100644 index 000000000..76f6c93bb --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/AddressRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(Address::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?Address + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?Address + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return Address[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return Address[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return Address::class; + } +} diff --git a/src/Bundle/ChillMainBundle/Repository/CountryRepository.php b/src/Bundle/ChillMainBundle/Repository/CountryRepository.php new file mode 100644 index 000000000..336768948 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/CountryRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(Country::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?Country + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?Country + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return Country[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return Country[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return Country::class; + } +} diff --git a/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php b/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php new file mode 100644 index 000000000..6faed8e47 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(GroupCenter::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?GroupCenter + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?GroupCenter + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return GroupCenter[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return GroupCenter[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return GroupCenter::class; + } +} diff --git a/src/Bundle/ChillMainBundle/Repository/LanguageRepository.php b/src/Bundle/ChillMainBundle/Repository/LanguageRepository.php new file mode 100644 index 000000000..f6a7ec284 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/LanguageRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(Language::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?Language + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?Language + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return Language[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return Language[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return Language::class; + } +} diff --git a/src/Bundle/ChillMainBundle/Repository/PermissionsGroupRepository.php b/src/Bundle/ChillMainBundle/Repository/PermissionsGroupRepository.php new file mode 100644 index 000000000..0bb4c7bfd --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/PermissionsGroupRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(PermissionsGroup::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?PermissionsGroup + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?PermissionsGroup + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return PermissionsGroup[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return PermissionsGroup[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return PermissionsGroup::class; + } +} diff --git a/src/Bundle/ChillMainBundle/Repository/RoleScopeRepository.php b/src/Bundle/ChillMainBundle/Repository/RoleScopeRepository.php new file mode 100644 index 000000000..6996f384c --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/RoleScopeRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(RoleScope::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?RoleScope + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?RoleScope + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return RoleScope[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return RoleScope[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return RoleScope::class; + } +} diff --git a/src/Bundle/ChillMainBundle/Repository/ScopeRepository.php b/src/Bundle/ChillMainBundle/Repository/ScopeRepository.php new file mode 100644 index 000000000..a2d4058da --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/ScopeRepository.php @@ -0,0 +1,50 @@ +repository = $entityManager->getRepository(Scope::class); + } + + public function find($id, $lockMode = null, $lockVersion = null): ?Scope + { + return $this->repository->find($id, $lockMode, $lockVersion); + } + + public function findOneBy(array $criteria, array $orderBy = null): ?Scope + { + return $this->repository->findOneBy($criteria, $orderBy); + } + + /** + * @return Scope[] + */ + public function findAll(): array + { + return $this->repository->findAll(); + } + + /** + * @return Scope[] + */ + public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array + { + return $this->repository->findBy($criteria, $orderBy, $limit, $offset); + } + + public function getClassName() { + return Scope::class; + } +}