-
Notifications
You must be signed in to change notification settings - Fork 0
Entity
Tomáš Jančar edited this page Oct 6, 2015
·
1 revision
#Entity
Třída dědící z INotificationEntity a doplňující metodu getClients(). Tato metoda pak vrací kolekci klientů. Dále tato entita musí mít zavedenou anotaci Source. Víc z anotacím v sekci Anotace entit.
product.php
/**
* Class TestEntity.
*
* @ORM\Entity()
*
* @Notification\Source(columns="id, name, description, tProduct")
* @Notification\DependentSources(columns="id")
* @Notification\Methods(types={"put", "post", "delete"})
*/
class Product implements INotificationEntity{
// ...
}