Mark entities as read-only that are only added/removed (never updated).
This commit is contained in:
parent
0b1393346d
commit
0edb34358f
|
@ -13,7 +13,7 @@ use Doctrine\ORM\Mapping as ORM;
|
|||
* }, uniqueConstraints={
|
||||
* @ORM\UniqueConstraint(name="stats_unique_idx", columns={"station_id", "type", "moment"})
|
||||
* })
|
||||
* @ORM\Entity
|
||||
* @ORM\Entity(readOnly=true)
|
||||
*/
|
||||
class Analytics
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use JsonSerializable;
|
|||
|
||||
/**
|
||||
* @ORM\Table(name="api_keys")
|
||||
* @ORM\Entity()
|
||||
* @ORM\Entity(readOnly=true)
|
||||
*
|
||||
* @AuditLog\Auditable
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,7 @@ use Doctrine\ORM\Mapping as ORM;
|
|||
|
||||
/**
|
||||
* @ORM\Table(name="audit_log")
|
||||
* @ORM\Entity
|
||||
* @ORM\Entity(readOnly=true)
|
||||
*/
|
||||
class AuditLog
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use JsonSerializable;
|
|||
* @ORM\Table(name="role_permissions", uniqueConstraints={
|
||||
* @ORM\UniqueConstraint(name="role_permission_unique_idx", columns={"role_id","action_name","station_id"})
|
||||
* })
|
||||
* @ORM\Entity()
|
||||
* @ORM\Entity(readOnly=true)
|
||||
*/
|
||||
class RolePermission implements JsonSerializable
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use OpenApi\Annotations as OA;
|
|||
* Each individual broadcast associated with a streamer.
|
||||
*
|
||||
* @ORM\Table(name="station_streamer_broadcasts")
|
||||
* @ORM\Entity()
|
||||
* @ORM\Entity(readOnly=true)
|
||||
* @ORM\HasLifecycleCallbacks
|
||||
*
|
||||
* @OA\Schema(type="object")
|
||||
|
|
Loading…
Reference in New Issue