diff --git a/app/src/Entity/Address.php b/app/src/Entity/Address.php deleted file mode 100644 index f42f4890e91881c84c20abfa862e86ef3f84bf3d..0000000000000000000000000000000000000000 --- a/app/src/Entity/Address.php +++ /dev/null @@ -1,51 +0,0 @@ -id; - } - - public function getRestaurantId(): ?Restaurants - { - return $this->restaurant_id; - } - - public function setRestaurantId(?Restaurants $restaurant_id): static - { - $this->restaurant_id = $restaurant_id; - - return $this; - } - - public function getAddress(): ?string - { - return $this->address; - } - - public function setAddress(string $address): static - { - $this->address = $address; - - return $this; - } -} diff --git a/app/src/Entity/Email.php b/app/src/Entity/Email.php deleted file mode 100644 index 8d4b8507bed4a4c937e7098ee5dbc90b7337e770..0000000000000000000000000000000000000000 --- a/app/src/Entity/Email.php +++ /dev/null @@ -1,51 +0,0 @@ -id; - } - - public function getRestaurantId(): ?Restaurants - { - return $this->restaurant_id; - } - - public function setRestaurantId(?Restaurants $restaurant_id): static - { - $this->restaurant_id = $restaurant_id; - - return $this; - } - - public function getEmail(): ?string - { - return $this->email; - } - - public function setEmail(string $email): static - { - $this->email = $email; - - return $this; - } -} diff --git a/app/src/Entity/Kitchens.php b/app/src/Entity/Kitchens.php deleted file mode 100644 index 8aa783df2877239a3ecf7d0a2a564684e46aeeb8..0000000000000000000000000000000000000000 --- a/app/src/Entity/Kitchens.php +++ /dev/null @@ -1,75 +0,0 @@ - - */ - #[ORM\ManyToMany(targetEntity: Restaurants::class, mappedBy: 'kitchens_id')] - private Collection $restaurants_id; - - public function __construct() - { - $this->restaurants_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - /** - * @return Collection - */ - public function getRestaurantsId(): Collection - { - return $this->restaurants_id; - } - - public function addRestaurantsId(Restaurants $restaurantsId): static - { - if (!$this->restaurants_id->contains($restaurantsId)) { - $this->restaurants_id->add($restaurantsId); - $restaurantsId->addKitchensId($this); - } - - return $this; - } - - public function removeRestaurantsId(Restaurants $restaurantsId): static - { - if ($this->restaurants_id->removeElement($restaurantsId)) { - $restaurantsId->removeKitchensId($this); - } - - return $this; - } -} diff --git a/app/src/Entity/News.php b/app/src/Entity/News.php deleted file mode 100644 index bbc53bea711c508683134373619beaf01d7d4230..0000000000000000000000000000000000000000 --- a/app/src/Entity/News.php +++ /dev/null @@ -1,230 +0,0 @@ - - */ - #[ORM\OneToMany(targetEntity: NewsComments::class, mappedBy: 'news_id')] - private Collection $news_comments_id; - - public function __construct() - { - $this->news_comments_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - - return $this; - } - - public function isActive(): ?bool - { - return $this->active; - } - - public function setActive(bool $active): static - { - $this->active = $active; - - return $this; - } - - public function getCreateAt(): ?\DateTimeImmutable - { - return $this->create_at; - } - - public function setCreateAt(\DateTimeImmutable $create_at): static - { - $this->create_at = $create_at; - - return $this; - } - - public function getUpdateAt(): ?\DateTimeInterface - { - return $this->update_at; - } - - public function setUpdateAt(\DateTimeInterface $update_at): static - { - $this->update_at = $update_at; - - return $this; - } - - public function getSort(): ?int - { - return $this->sort; - } - - public function setSort(int $sort): static - { - $this->sort = $sort; - - return $this; - } - - public function getPreviewImage(): ?string - { - return $this->preview_image; - } - - public function setPreviewImage(?string $preview_image): static - { - $this->preview_image = $preview_image; - - return $this; - } - - public function getDetailImage(): ?string - { - return $this->detail_image; - } - - public function setDetailImage(?string $detail_image): static - { - $this->detail_image = $detail_image; - - return $this; - } - - public function getPreviewText(): ?string - { - return $this->preview_text; - } - - public function setPreviewText(?string $preview_text): static - { - $this->preview_text = $preview_text; - - return $this; - } - - public function getDetailTest(): ?string - { - return $this->detail_test; - } - - public function setDetailTest(?string $detail_test): static - { - $this->detail_test = $detail_test; - - return $this; - } - - public function getTypeId(): ?NewsType - { - return $this->type_id; - } - - public function setTypeId(?NewsType $type_id): static - { - $this->type_id = $type_id; - - return $this; - } - - public function isMainPageRender(): ?bool - { - return $this->main_page_render; - } - - public function setMainPageRender(bool $main_page_render): static - { - $this->main_page_render = $main_page_render; - - return $this; - } - - /** - * @return Collection - */ - public function getNewsCommentsId(): Collection - { - return $this->news_comments_id; - } - - public function addNewsCommentsId(NewsComments $newsCommentsId): static - { - if (!$this->news_comments_id->contains($newsCommentsId)) { - $this->news_comments_id->add($newsCommentsId); - $newsCommentsId->setNewsId($this); - } - - return $this; - } - - public function removeNewsCommentsId(NewsComments $newsCommentsId): static - { - if ($this->news_comments_id->removeElement($newsCommentsId)) { - // set the owning side to null (unless already changed) - if ($newsCommentsId->getNewsId() === $this) { - $newsCommentsId->setNewsId(null); - } - } - - return $this; - } -} diff --git a/app/src/Entity/NewsCategories.php b/app/src/Entity/NewsCategories.php deleted file mode 100644 index 8d86aa2401b9516f469fb8816a11de36d25ef3ba..0000000000000000000000000000000000000000 --- a/app/src/Entity/NewsCategories.php +++ /dev/null @@ -1,50 +0,0 @@ -id; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - - return $this; - } -} diff --git a/app/src/Entity/NewsComments.php b/app/src/Entity/NewsComments.php deleted file mode 100644 index 04dc1a21f71b0f507540eb9aafb160aff1029022..0000000000000000000000000000000000000000 --- a/app/src/Entity/NewsComments.php +++ /dev/null @@ -1,142 +0,0 @@ -id; - } - - public function getNewsId(): ?News - { - return $this->news_id; - } - - public function setNewsId(?News $news_id): static - { - $this->news_id = $news_id; - - return $this; - } - - public function isModerated(): ?bool - { - return $this->moderated; - } - - public function setModerated(?bool $moderated): static - { - $this->moderated = $moderated; - - return $this; - } - - public function getModeratorId(): ?Users - { - return $this->moderator_id; - } - - public function setModeratorId(?Users $moderator_id): static - { - $this->moderator_id = $moderator_id; - - return $this; - } - - public function getUserName(): ?string - { - return $this->user_name; - } - - public function setUserName(string $user_name): static - { - $this->user_name = $user_name; - - return $this; - } - - public function getUserId(): ?Users - { - return $this->user_id; - } - - public function setUserId(?Users $user_id): static - { - $this->user_id = $user_id; - - return $this; - } - - public function getTest(): ?string - { - return $this->test; - } - - public function setTest(string $test): static - { - $this->test = $test; - - return $this; - } - - public function getCreateAt(): ?\DateTimeImmutable - { - return $this->create_at; - } - - public function setCreateAt(\DateTimeImmutable $create_at): static - { - $this->create_at = $create_at; - - return $this; - } - - public function getUpdateAt(): ?\DateTimeInterface - { - return $this->update_at; - } - - public function setUpdateAt(\DateTimeInterface $update_at): static - { - $this->update_at = $update_at; - - return $this; - } -} diff --git a/app/src/Entity/NewsType.php b/app/src/Entity/NewsType.php deleted file mode 100644 index 2959afbffc947b18763d1256abb9075e2d265786..0000000000000000000000000000000000000000 --- a/app/src/Entity/NewsType.php +++ /dev/null @@ -1,93 +0,0 @@ - - */ - #[ORM\OneToMany(targetEntity: News::class, mappedBy: 'type_id')] - private Collection $news_id; - - public function __construct() - { - $this->news_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - - return $this; - } - - /** - * @return Collection - */ - public function getNewsId(): Collection - { - return $this->news_id; - } - - public function addNewsId(News $newsId): static - { - if (!$this->news_id->contains($newsId)) { - $this->news_id->add($newsId); - $newsId->setTypeId($this); - } - - return $this; - } - - public function removeNewsId(News $newsId): static - { - if ($this->news_id->removeElement($newsId)) { - // set the owning side to null (unless already changed) - if ($newsId->getTypeId() === $this) { - $newsId->setTypeId(null); - } - } - - return $this; - } -} diff --git a/app/src/Entity/Phone.php b/app/src/Entity/Phone.php deleted file mode 100644 index c808e22a63ad765c2dcc7e9b8ac8fb06cc15e1b7..0000000000000000000000000000000000000000 --- a/app/src/Entity/Phone.php +++ /dev/null @@ -1,51 +0,0 @@ -id; - } - - public function getRestaurantId(): ?Restaurants - { - return $this->restaurant_id; - } - - public function setRestaurantId(?Restaurants $restaurant_id): static - { - $this->restaurant_id = $restaurant_id; - - return $this; - } - - public function getPhoneNumber(): ?string - { - return $this->phone_number; - } - - public function setPhoneNumber(string $phone_number): static - { - $this->phone_number = $phone_number; - - return $this; - } -} diff --git a/app/src/Entity/RestauranTypes.php b/app/src/Entity/RestauranTypes.php deleted file mode 100644 index a4bb78f62af4d7b97916c7a520f85471bdcc3fda..0000000000000000000000000000000000000000 --- a/app/src/Entity/RestauranTypes.php +++ /dev/null @@ -1,93 +0,0 @@ - - */ - #[ORM\OneToMany(targetEntity: Restaurants::class, mappedBy: 'type_id')] - private Collection $restaurants_id; - - public function __construct() - { - $this->restaurants_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - - return $this; - } - - /** - * @return Collection - */ - public function getRestaurantsId(): Collection - { - return $this->restaurants_id; - } - - public function addRestaurantsId(Restaurants $restaurantsId): static - { - if (!$this->restaurants_id->contains($restaurantsId)) { - $this->restaurants_id->add($restaurantsId); - $restaurantsId->setTypeId($this); - } - - return $this; - } - - public function removeRestaurantsId(Restaurants $restaurantsId): static - { - if ($this->restaurants_id->removeElement($restaurantsId)) { - // set the owning side to null (unless already changed) - if ($restaurantsId->getTypeId() === $this) { - $restaurantsId->setTypeId(null); - } - } - - return $this; - } -} diff --git a/app/src/Entity/Restaurants.php b/app/src/Entity/Restaurants.php deleted file mode 100644 index 2f266379c9082c100bdb4095c90f2570b21e5b4e..0000000000000000000000000000000000000000 --- a/app/src/Entity/Restaurants.php +++ /dev/null @@ -1,461 +0,0 @@ - - */ - #[ORM\ManyToMany(targetEntity: Kitchens::class, inversedBy: 'restaurants_id')] - private Collection $kitchens_id; - - /** - * @var Collection - */ - #[ORM\OneToMany(targetEntity: Phone::class, mappedBy: 'restaurant_id')] - private Collection $phones_id; - - /** - * @var Collection - */ - #[ORM\OneToMany(targetEntity: Email::class, mappedBy: 'restaurant_id')] - private Collection $emails_id; - - /** - * @var Collection - */ - #[ORM\OneToMany(targetEntity: Address::class, mappedBy: 'restaurant_id')] - private Collection $addresses_id; - - /** - * @var Collection - */ - #[ORM\ManyToMany(targetEntity: Tags::class, mappedBy: 'restaurant_id')] - private Collection $tags_id; - - #[ORM\Column(length: 255, nullable: true)] - private ?string $site = null; - - #[ORM\Column(length: 255, nullable: true)] - private ?string $preview_image = null; - - #[ORM\Column(length: 255, nullable: true)] - private ?string $detail_image = null; - - #[ORM\Column(length: 1000, nullable: true)] - private ?string $how_to_find = null; - - public function __construct() - { - $this->kitchens_id = new ArrayCollection(); - $this->phones_id = new ArrayCollection(); - $this->emails_id = new ArrayCollection(); - $this->addresses_id = new ArrayCollection(); - $this->tags_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getUuid(): ?string - { - return $this->uuid; - } - - public function setUuid(string $uuid): static - { - $this->uuid = $uuid; - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - - return $this; - } - - public function isActive(): ?bool - { - return $this->active; - } - - public function setActive(bool $active): static - { - $this->active = $active; - - return $this; - } - - public function getSort(): ?int - { - return $this->sort; - } - - public function setSort(int $sort): static - { - $this->sort = $sort; - - return $this; - } - - public function getCreateAt(): ?\DateTimeImmutable - { - return $this->create_at; - } - - public function setCreateAt(\DateTimeImmutable $create_at): static - { - $this->create_at = $create_at; - - return $this; - } - - public function getUpdateAt(): ?\DateTimeInterface - { - return $this->update_at; - } - - public function setUpdateAt(\DateTimeInterface $update_at): static - { - $this->update_at = $update_at; - - return $this; - } - - public function getCoordinates(): array - { - return $this->coordinates; - } - - public function setCoordinates(array $coordinates): static - { - $this->coordinates = $coordinates; - - return $this; - } - - public function getTypeId(): ?RestauranTypes - { - return $this->type_id; - } - - public function setTypeId(?RestauranTypes $type_id): static - { - $this->type_id = $type_id; - - return $this; - } - - public function getSettlementId(): ?Settlements - { - return $this->settlement_id; - } - - public function setSettlementId(?Settlements $settlement_id): static - { - $this->settlement_id = $settlement_id; - - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - - return $this; - } - - public function getRecipe(): ?string - { - return $this->recipe; - } - - public function setRecipe(?string $recipe): static - { - $this->recipe = $recipe; - - return $this; - } - - public function getRecipeInfo(): ?string - { - return $this->recipe_info; - } - - public function setRecipeInfo(string $recipe_info): static - { - $this->recipe_info = $recipe_info; - - return $this; - } - - /** - * @return Collection - */ - public function getKitchensId(): Collection - { - return $this->kitchens_id; - } - - public function addKitchensId(Kitchens $kitchensId): static - { - if (!$this->kitchens_id->contains($kitchensId)) { - $this->kitchens_id->add($kitchensId); - } - - return $this; - } - - public function removeKitchensId(Kitchens $kitchensId): static - { - $this->kitchens_id->removeElement($kitchensId); - - return $this; - } - - /** - * @return Collection - */ - public function getPhonesId(): Collection - { - return $this->phones_id; - } - - public function addPhonesId(Phone $phonesId): static - { - if (!$this->phones_id->contains($phonesId)) { - $this->phones_id->add($phonesId); - $phonesId->setRestaurantId($this); - } - - return $this; - } - - public function removePhonesId(Phone $phonesId): static - { - if ($this->phones_id->removeElement($phonesId)) { - // set the owning side to null (unless already changed) - if ($phonesId->getRestaurantId() === $this) { - $phonesId->setRestaurantId(null); - } - } - - return $this; - } - - /** - * @return Collection - */ - public function getEmailsId(): Collection - { - return $this->emails_id; - } - - public function addEmailsId(Email $emailsId): static - { - if (!$this->emails_id->contains($emailsId)) { - $this->emails_id->add($emailsId); - $emailsId->setRestaurantId($this); - } - - return $this; - } - - public function removeEmailsId(Email $emailsId): static - { - if ($this->emails_id->removeElement($emailsId)) { - // set the owning side to null (unless already changed) - if ($emailsId->getRestaurantId() === $this) { - $emailsId->setRestaurantId(null); - } - } - - return $this; - } - - /** - * @return Collection - */ - public function getAddressesId(): Collection - { - return $this->addresses_id; - } - - public function addAddressesId(Address $addressesId): static - { - if (!$this->addresses_id->contains($addressesId)) { - $this->addresses_id->add($addressesId); - $addressesId->setRestaurantId($this); - } - - return $this; - } - - public function removeAddressesId(Address $addressesId): static - { - if ($this->addresses_id->removeElement($addressesId)) { - // set the owning side to null (unless already changed) - if ($addressesId->getRestaurantId() === $this) { - $addressesId->setRestaurantId(null); - } - } - - return $this; - } - - /** - * @return Collection - */ - public function getTagsId(): Collection - { - return $this->tags_id; - } - - public function addTagsId(Tags $tagsId): static - { - if (!$this->tags_id->contains($tagsId)) { - $this->tags_id->add($tagsId); - $tagsId->addRestaurantId($this); - } - - return $this; - } - - public function removeTagsId(Tags $tagsId): static - { - if ($this->tags_id->removeElement($tagsId)) { - $tagsId->removeRestaurantId($this); - } - - return $this; - } - - public function getSite(): ?string - { - return $this->site; - } - - public function setSite(?string $site): static - { - $this->site = $site; - - return $this; - } - - public function getPreviewImage(): ?string - { - return $this->preview_image; - } - - public function setPreviewImage(?string $preview_image): static - { - $this->preview_image = $preview_image; - - return $this; - } - - public function getDetailImage(): ?string - { - return $this->detail_image; - } - - public function setDetailImage(string $detail_image): static - { - $this->detail_image = $detail_image; - - return $this; - } - - public function getHowToFind(): ?string - { - return $this->how_to_find; - } - - public function setHowToFind(?string $how_to_find): static - { - $this->how_to_find = $how_to_find; - - return $this; - } -} - diff --git a/app/src/Entity/Settlements.php b/app/src/Entity/Settlements.php deleted file mode 100644 index 2f3261456f77e4a26db0bda00886c83db98db3fa..0000000000000000000000000000000000000000 --- a/app/src/Entity/Settlements.php +++ /dev/null @@ -1,154 +0,0 @@ - - */ - #[ORM\OneToMany(targetEntity: Restaurants::class, mappedBy: 'settlement_id')] - private Collection $restaurant_id; - - public function __construct() - { - $this->restaurant_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getUuid(): ?string - { - return $this->uuid; - } - - public function setUuid(string $uuid): static - { - $this->uuid = $uuid; - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - - return $this; - } - - public function getCoordinates(): array - { - return $this->coordinates; - } - - public function setCoordinates(array $coordinates): static - { - $this->coordinates = $coordinates; - - return $this; - } - - public function getCreateAt(): ?\DateTimeImmutable - { - return $this->create_at; - } - - public function setCreateAt(\DateTimeImmutable $create_at): static - { - $this->create_at = $create_at; - - return $this; - } - - public function getUpdateAt(): ?\DateTimeInterface - { - return $this->update_at; - } - - public function setUpdateAt(\DateTimeInterface $update_at): static - { - $this->update_at = $update_at; - - return $this; - } - - /** - * @return Collection - */ - public function getRestaurantId(): Collection - { - return $this->restaurant_id; - } - - public function addRestaurantId(Restaurants $restaurantId): static - { - if (!$this->restaurant_id->contains($restaurantId)) { - $this->restaurant_id->add($restaurantId); - $restaurantId->setSettlementId($this); - } - - return $this; - } - - public function removeRestaurantId(Restaurants $restaurantId): static - { - if ($this->restaurant_id->removeElement($restaurantId)) { - // set the owning side to null (unless already changed) - if ($restaurantId->getSettlementId() === $this) { - $restaurantId->setSettlementId(null); - } - } - - return $this; - } -} diff --git a/app/src/Entity/Tags.php b/app/src/Entity/Tags.php deleted file mode 100644 index ceb5f6ab2dd46204642273ecbf4e6fe2a49e1ee7..0000000000000000000000000000000000000000 --- a/app/src/Entity/Tags.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - #[ORM\ManyToMany(targetEntity: Restaurants::class, inversedBy: 'tags_id')] - private Collection $restaurant_id; - - #[ORM\Column(length: 255)] - private ?string $name = null; - - public function __construct() - { - $this->restaurant_id = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - /** - * @return Collection - */ - public function getRestaurantId(): Collection - { - return $this->restaurant_id; - } - - public function addRestaurantId(Restaurants $restaurantId): static - { - if (!$this->restaurant_id->contains($restaurantId)) { - $this->restaurant_id->add($restaurantId); - } - - return $this; - } - - public function removeRestaurantId(Restaurants $restaurantId): static - { - $this->restaurant_id->removeElement($restaurantId); - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } -} diff --git a/app/src/Entity/Users.php b/app/src/Entity/Users.php deleted file mode 100644 index e76741d7921e3411566ac1af74a1c608117064f8..0000000000000000000000000000000000000000 --- a/app/src/Entity/Users.php +++ /dev/null @@ -1,221 +0,0 @@ - - */ - #[ORM\OneToMany(targetEntity: NewsComments::class, mappedBy: 'moderator_id')] - private Collection $news_comments_id_moderate; - - /** - * @var Collection - */ - #[ORM\OneToMany(targetEntity: NewsComments::class, mappedBy: 'user_id')] - private Collection $news_comments_id_comment; - - public function __construct() - { - $this->news_comments_id_moderate = new ArrayCollection(); - $this->news_comments_id_comment = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getUuid(): ?string - { - return $this->uuid; - } - - public function setUuid(string $uuid): static - { - $this->uuid = $uuid; - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - - return $this; - } - - public function isMale(): ?bool - { - return $this->isMale; - } - - public function setMale(bool $isMale): static - { - $this->isMale = $isMale; - - return $this; - } - - public function getBirthDay(): ?\DateTimeImmutable - { - return $this->birthDay; - } - - public function setBirthDay(?\DateTimeImmutable $birthDay): static - { - $this->birthDay = $birthDay; - - return $this; - } - - public function get�ф�address(): ?string - { - return $this->�ф�address; - } - - public function set�ф�address(string $�ф�address): static - { - $this->�ф�address = $�ф�address; - - return $this; - } - - public function getSurname(): ?string - { - return $this->surname; - } - - public function setSurname(string $surname): static - { - $this->surname = $surname; - - return $this; - } - - public function getPhoneNumber(): ?string - { - return $this->phone_number; - } - - public function setPhoneNumber(?string $phone_number): static - { - $this->phone_number = $phone_number; - - return $this; - } - - public function getEmail(): ?string - { - return $this->email; - } - - public function setEmail(?string $email): static - { - $this->email = $email; - - return $this; - } - - /** - * @return Collection - */ - public function getNewsCommentsIdModerate(): Collection - { - return $this->news_comments_id_moderate; - } - - public function addNewsCommentsIdModerate(NewsComments $newsCommentsIdModerate): static - { - if (!$this->news_comments_id_moderate->contains($newsCommentsIdModerate)) { - $this->news_comments_id_moderate->add($newsCommentsIdModerate); - $newsCommentsIdModerate->setModeratorId($this); - } - - return $this; - } - - public function removeNewsCommentsIdModerate(NewsComments $newsCommentsIdModerate): static - { - if ($this->news_comments_id_moderate->removeElement($newsCommentsIdModerate)) { - // set the owning side to null (unless already changed) - if ($newsCommentsIdModerate->getModeratorId() === $this) { - $newsCommentsIdModerate->setModeratorId(null); - } - } - - return $this; - } - - /** - * @return Collection - */ - public function getNewsCommentsIdComment(): Collection - { - return $this->news_comments_id_comment; - } - - public function addNewsCommentsIdComment(NewsComments $newsCommentsIdComment): static - { - if (!$this->news_comments_id_comment->contains($newsCommentsIdComment)) { - $this->news_comments_id_comment->add($newsCommentsIdComment); - $newsCommentsIdComment->setUserId($this); - } - - return $this; - } - - public function removeNewsCommentsIdComment(NewsComments $newsCommentsIdComment): static - { - if ($this->news_comments_id_comment->removeElement($newsCommentsIdComment)) { - // set the owning side to null (unless already changed) - if ($newsCommentsIdComment->getUserId() === $this) { - $newsCommentsIdComment->setUserId(null); - } - } - - return $this; - } -} diff --git a/app/src/Repository/AddressRepository.php b/app/src/Repository/AddressRepository.php deleted file mode 100644 index e87117f70e405b7589e9163f3c41e2d26ac907ee..0000000000000000000000000000000000000000 --- a/app/src/Repository/AddressRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Address|null find($id, $lockMode = null, $lockVersion = null) - * @method Address|null findOneBy(array $criteria, array $orderBy = null) - * @method Address[] findAll() - * @method Address[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class AddressRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Address::class); - } - -// /** -// * @return Address[] Returns an array of Address objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('a') -// ->andWhere('a.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('a.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Address -// { -// return $this->createQueryBuilder('a') -// ->andWhere('a.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/EmailRepository.php b/app/src/Repository/EmailRepository.php deleted file mode 100644 index f22b0ee0d029d5f706c6be57fde2ad6178b21efb..0000000000000000000000000000000000000000 --- a/app/src/Repository/EmailRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Email|null find($id, $lockMode = null, $lockVersion = null) - * @method Email|null findOneBy(array $criteria, array $orderBy = null) - * @method Email[] findAll() - * @method Email[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class EmailRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Email::class); - } - -// /** -// * @return Email[] Returns an array of Email objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('e') -// ->andWhere('e.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('e.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Email -// { -// return $this->createQueryBuilder('e') -// ->andWhere('e.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/KitchensRepository.php b/app/src/Repository/KitchensRepository.php deleted file mode 100644 index 47ef7faa20b732ca03c311f7c5fa8de440a246e8..0000000000000000000000000000000000000000 --- a/app/src/Repository/KitchensRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Kitchens|null find($id, $lockMode = null, $lockVersion = null) - * @method Kitchens|null findOneBy(array $criteria, array $orderBy = null) - * @method Kitchens[] findAll() - * @method Kitchens[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class KitchensRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Kitchens::class); - } - -// /** -// * @return Kitchens[] Returns an array of Kitchens objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('k') -// ->andWhere('k.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('k.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Kitchens -// { -// return $this->createQueryBuilder('k') -// ->andWhere('k.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/NewsCategoriesRepository.php b/app/src/Repository/NewsCategoriesRepository.php deleted file mode 100644 index 46c102e9c2585219278f117220a7348cb0622789..0000000000000000000000000000000000000000 --- a/app/src/Repository/NewsCategoriesRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method NewsCategories|null find($id, $lockMode = null, $lockVersion = null) - * @method NewsCategories|null findOneBy(array $criteria, array $orderBy = null) - * @method NewsCategories[] findAll() - * @method NewsCategories[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class NewsCategoriesRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, NewsCategories::class); - } - -// /** -// * @return NewsCategories[] Returns an array of NewsCategories objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('n.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?NewsCategories -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/NewsCommentsRepository.php b/app/src/Repository/NewsCommentsRepository.php deleted file mode 100644 index 9bf4cd0a112e8463a26daf5018e1f19f25145834..0000000000000000000000000000000000000000 --- a/app/src/Repository/NewsCommentsRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method NewsComments|null find($id, $lockMode = null, $lockVersion = null) - * @method NewsComments|null findOneBy(array $criteria, array $orderBy = null) - * @method NewsComments[] findAll() - * @method NewsComments[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class NewsCommentsRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, NewsComments::class); - } - -// /** -// * @return NewsComments[] Returns an array of NewsComments objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('n.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?NewsComments -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/NewsRepository.php b/app/src/Repository/NewsRepository.php deleted file mode 100644 index 3b5d8645e9d224f41d8510010eb2ad51d0675722..0000000000000000000000000000000000000000 --- a/app/src/Repository/NewsRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method News|null find($id, $lockMode = null, $lockVersion = null) - * @method News|null findOneBy(array $criteria, array $orderBy = null) - * @method News[] findAll() - * @method News[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class NewsRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, News::class); - } - -// /** -// * @return News[] Returns an array of News objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('n.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?News -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/NewsTypeRepository.php b/app/src/Repository/NewsTypeRepository.php deleted file mode 100644 index 385998b7a956694f621dbd6286b876565699a042..0000000000000000000000000000000000000000 --- a/app/src/Repository/NewsTypeRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method NewsType|null find($id, $lockMode = null, $lockVersion = null) - * @method NewsType|null findOneBy(array $criteria, array $orderBy = null) - * @method NewsType[] findAll() - * @method NewsType[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class NewsTypeRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, NewsType::class); - } - -// /** -// * @return NewsType[] Returns an array of NewsType objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('n.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?NewsType -// { -// return $this->createQueryBuilder('n') -// ->andWhere('n.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/PhoneRepository.php b/app/src/Repository/PhoneRepository.php deleted file mode 100644 index de389d66d0b7588d5aaee5cb45780e36ba6ff5f8..0000000000000000000000000000000000000000 --- a/app/src/Repository/PhoneRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Phone|null find($id, $lockMode = null, $lockVersion = null) - * @method Phone|null findOneBy(array $criteria, array $orderBy = null) - * @method Phone[] findAll() - * @method Phone[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class PhoneRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Phone::class); - } - -// /** -// * @return Phone[] Returns an array of Phone objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('p') -// ->andWhere('p.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('p.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Phone -// { -// return $this->createQueryBuilder('p') -// ->andWhere('p.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/RestauranTypesRepository.php b/app/src/Repository/RestauranTypesRepository.php deleted file mode 100644 index fd67ecbb07f6166569c7319217e810f520ecdf4a..0000000000000000000000000000000000000000 --- a/app/src/Repository/RestauranTypesRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method RestauranTypes|null find($id, $lockMode = null, $lockVersion = null) - * @method RestauranTypes|null findOneBy(array $criteria, array $orderBy = null) - * @method RestauranTypes[] findAll() - * @method RestauranTypes[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class RestauranTypesRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, RestauranTypes::class); - } - -// /** -// * @return RestauranTypes[] Returns an array of RestauranTypes objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('r') -// ->andWhere('r.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('r.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?RestauranTypes -// { -// return $this->createQueryBuilder('r') -// ->andWhere('r.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/RestaurantsRepository.php b/app/src/Repository/RestaurantsRepository.php deleted file mode 100644 index f540695ade01a46901b408f4fceebfcd4fd52908..0000000000000000000000000000000000000000 --- a/app/src/Repository/RestaurantsRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Restaurants|null find($id, $lockMode = null, $lockVersion = null) - * @method Restaurants|null findOneBy(array $criteria, array $orderBy = null) - * @method Restaurants[] findAll() - * @method Restaurants[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class RestaurantsRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Restaurants::class); - } - -// /** -// * @return Restaurants[] Returns an array of Restaurants objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('r') -// ->andWhere('r.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('r.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Restaurants -// { -// return $this->createQueryBuilder('r') -// ->andWhere('r.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/SettlementsRepository.php b/app/src/Repository/SettlementsRepository.php deleted file mode 100644 index ff6673b90ec2985b4c69564c05557888986380c9..0000000000000000000000000000000000000000 --- a/app/src/Repository/SettlementsRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Settlements|null find($id, $lockMode = null, $lockVersion = null) - * @method Settlements|null findOneBy(array $criteria, array $orderBy = null) - * @method Settlements[] findAll() - * @method Settlements[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class SettlementsRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Settlements::class); - } - -// /** -// * @return Settlements[] Returns an array of Settlements objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('s') -// ->andWhere('s.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('s.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Settlements -// { -// return $this->createQueryBuilder('s') -// ->andWhere('s.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/TagsRepository.php b/app/src/Repository/TagsRepository.php deleted file mode 100644 index 4f0146363e6efd8235bae18aa1e598f52fab0746..0000000000000000000000000000000000000000 --- a/app/src/Repository/TagsRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Tags|null find($id, $lockMode = null, $lockVersion = null) - * @method Tags|null findOneBy(array $criteria, array $orderBy = null) - * @method Tags[] findAll() - * @method Tags[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class TagsRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Tags::class); - } - -// /** -// * @return Tags[] Returns an array of Tags objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('t') -// ->andWhere('t.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('t.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Tags -// { -// return $this->createQueryBuilder('t') -// ->andWhere('t.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/src/Repository/UsersRepository.php b/app/src/Repository/UsersRepository.php deleted file mode 100644 index c794b383f04164484c41f4aac162583ab5e88730..0000000000000000000000000000000000000000 --- a/app/src/Repository/UsersRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * @method Users|null find($id, $lockMode = null, $lockVersion = null) - * @method Users|null findOneBy(array $criteria, array $orderBy = null) - * @method Users[] findAll() - * @method Users[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class UsersRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Users::class); - } - -// /** -// * @return Users[] Returns an array of Users objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('u') -// ->andWhere('u.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('u.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Users -// { -// return $this->createQueryBuilder('u') -// ->andWhere('u.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/app/templates/news_types/index.html.twig b/app/templates/news_types/index.html.twig deleted file mode 100644 index 310cc3a7e1692572dad0486f579292b263f7ad3c..0000000000000000000000000000000000000000 --- a/app/templates/news_types/index.html.twig +++ /dev/null @@ -1,20 +0,0 @@ -{% extends 'base.html.twig' %} - -{% block title %}Hello NewsTypesController!{% endblock %} - -{% block body %} - - -
-

Hello {{ controller_name }}! ✅

- - This friendly message is coming from: -
    -
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/app/src/Controller/NewsTypesController.php
  • -
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/app/templates/news_types/index.html.twig
  • -
-
-{% endblock %} diff --git a/docker/.env b/docker/.env deleted file mode 100644 index 7169a48607edaf66aa0da3896d259fc026426cc2..0000000000000000000000000000000000000000 --- a/docker/.env +++ /dev/null @@ -1,3 +0,0 @@ -DATABASE_PASSWORD="root" -DATABASE_USER="root" -DATABASE_NAME="postgres" \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000