Mark entities as read-only that are only added/removed (never updated).

This commit is contained in:
Buster "Silver Eagle" Neece 2020-12-07 03:30:39 -06:00
parent 0b1393346d
commit 0edb34358f
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
5 changed files with 5 additions and 5 deletions

View File

@ -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
{

View File

@ -9,7 +9,7 @@ use JsonSerializable;
/**
* @ORM\Table(name="api_keys")
* @ORM\Entity()
* @ORM\Entity(readOnly=true)
*
* @AuditLog\Auditable
*/

View File

@ -6,7 +6,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="audit_log")
* @ORM\Entity
* @ORM\Entity(readOnly=true)
*/
class AuditLog
{

View File

@ -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
{

View File

@ -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")