<?php
namespace Cms\TenantBundle\Entity\TenantedEntities;
use Cms\TenantBundle\Entity\TenantedEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* This type is used for tables that have their own PKID generation.
* These objects DO NOT use the globally unique identification scheme.
* This is useful for features that have large tables but do not need identification.
* For example, the bandwidth, storage, and other resource usages.
* In these kinds of scenarios, we need an ID to designate the record.
* However, the user never really interacts with single records.
*
* Class AnonymousTenantedEntity
* @package Cms\TenantBundle\Entity\TenantedEntities
*
* @ORM\MappedSuperclass
*/
abstract class AnonymousTenantedEntity extends TenantedEntity
{
/**
* @var int
*
* @ORM\Column(
* type = "integer",
* options = {
* "unsigned" = true
* }
* )
* @ORM\Id
* @ORM\GeneratedValue(
* strategy = "AUTO"
* )
*/
protected $id;
/**
* @var int
*
* @ORM\Column(
* type = "string",
* nullable = true,
* unique = false
* )
*/
protected $uid;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
}