From f71e5cc158d02b7323b37f1e9febed91b9dbf352 Mon Sep 17 00:00:00 2001 From: PaulCombal Date: Fri, 1 Mar 2019 13:24:58 +0100 Subject: [PATCH] auto --- NotificationsBundle/Entity/BillingInvoice.php | 38 ----- NotificationsBundle/Entity/Notification.php | 182 +++++++++++++++++++++ NotificationsBundle/NotificationsBundle.php | 2 - .../Repository/BillingInvoiceRepository.php | 50 ------ .../Repository/NotificationRepository.php | 21 +++ 5 files changed, 203 insertions(+), 90 deletions(-) delete mode 100644 NotificationsBundle/Entity/BillingInvoice.php create mode 100644 NotificationsBundle/Entity/Notification.php delete mode 100644 NotificationsBundle/Repository/BillingInvoiceRepository.php create mode 100644 NotificationsBundle/Repository/NotificationRepository.php diff --git a/NotificationsBundle/Entity/BillingInvoice.php b/NotificationsBundle/Entity/BillingInvoice.php deleted file mode 100644 index 6dbb58a..0000000 --- a/NotificationsBundle/Entity/BillingInvoice.php +++ /dev/null @@ -1,38 +0,0 @@ -id; + } + + /** + * @param mixed $id + * @return Notification + */ + public function setId($id) + { + $this->id = $id; + return $this; + } + + /** + * @return mixed + */ + public function getTitle() + { + return $this->title; + } + + /** + * @param mixed $title + * @return Notification + */ + public function setTitle($title) + { + $this->title = $title; + return $this; + } + + /** + * @return mixed + */ + public function getData() + { + return $this->data; + } + + /** + * @param mixed $data + * @return Notification + */ + public function setData($data) + { + $this->data = $data; + return $this; + } + + /** + * @return mixed + */ + public function getDescription() + { + return $this->description; + } + + /** + * @param mixed $description + * @return Notification + */ + public function setDescription($description) + { + $this->description = $description; + return $this; + } + + /** + * @return mixed + */ + public function getUser() + { + return $this->user; + } + + /** + * @param mixed $user + * @return Notification + */ + public function setUser($user) + { + $this->user = $user; + return $this; + } + + /** + * @return mixed + */ + public function getDeletedAt() + { + return $this->deleted_at; + } + + /** + * @param mixed $deleted_at + * @return Notification + */ + public function setDeletedAt($deleted_at) + { + $this->deleted_at = $deleted_at; + return $this; + } + + /** + * @return mixed + */ + public function getSeenAt() + { + return $this->seen_at; + } + + /** + * @param mixed $seen_at + * @return Notification + */ + public function setSeenAt($seen_at) + { + $this->seen_at = $seen_at; + return $this; + } +} diff --git a/NotificationsBundle/NotificationsBundle.php b/NotificationsBundle/NotificationsBundle.php index ae64045..7db5c46 100644 --- a/NotificationsBundle/NotificationsBundle.php +++ b/NotificationsBundle/NotificationsBundle.php @@ -2,8 +2,6 @@ namespace Bluesquare\NotificationsBundle; -use Bluesquare\NotificationsBundle\Entity\BillingInvoice; -use Bluesquare\NotificationsBundle\Repository\BillingInvoiceRepository; use Symfony\Component\DependencyInjection\ContainerBuilder; use Bluesquare\NotificationsBundle\DependencyInjection\NotificationsExtension; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/NotificationsBundle/Repository/BillingInvoiceRepository.php b/NotificationsBundle/Repository/BillingInvoiceRepository.php deleted file mode 100644 index 6fc4877..0000000 --- a/NotificationsBundle/Repository/BillingInvoiceRepository.php +++ /dev/null @@ -1,50 +0,0 @@ -createQueryBuilder('b') - ->andWhere('b.exampleField = :val') - ->setParameter('val', $value) - ->orderBy('b.id', 'ASC') - ->setMaxResults(10) - ->getQuery() - ->getResult() - ; - } - */ - - /* - public function findOneBySomeField($value): ?BillingInvoice - { - return $this->createQueryBuilder('b') - ->andWhere('b.exampleField = :val') - ->setParameter('val', $value) - ->getQuery() - ->getOneOrNullResult() - ; - } - */ -} diff --git a/NotificationsBundle/Repository/NotificationRepository.php b/NotificationsBundle/Repository/NotificationRepository.php new file mode 100644 index 0000000..8cfdf8e --- /dev/null +++ b/NotificationsBundle/Repository/NotificationRepository.php @@ -0,0 +1,21 @@ +