VK
Size: a a a
VK
fn
VK
foreach ($uow->getScheduledEntityUpdates() as $entity) {
$unitOfWork->computeChangeSet($classMetadata, $entity)
}
VK
VK
fn
VK
VS
fn
VK
VK
VS
VK
BB
App:
int $id
status $status
Task:
int $id
status $status
Log
int $id
string $type_entity (app or task)
int $id_entity
status $status
date $date
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
...
/**
* @var string $nameRu
*
* @Gedmo\Translatable
* @ORM\Column(name="name_ru", type="string", length=255)
*/
private $nameRu;
/**
* @var datetime $contentChanged
*
* @ORM\Column(name="content_changed", type="datetime", nullable=true)
* @Gedmo\Timestampable(on="change", field={"name_ru", "description","deleted","businesstypes"})
*/
private $contentChanged;
get
log$query = $em->createQuery(
'SELECT p
FROM Gedmo\Loggable\Entity\LogEntry p
WHERE p.action = :action AND p.objectClass LIKE :objectclass AND p.loggedAt LIKE :datetoday'
)->setParameter('action', 'create')->setParameter('objectclass', '%BusinessLicense%')->setParameter('datetoday', '%'.date('Y-m-d').'%');
$createdlicenses = sizeof($query->getResult());
SM
КГ
App:
int $id
status $status
Task:
int $id
status $status
Log
int $id
string $type_entity (app or task)
int $id_entity
status $status
date $date
fn
КГ
public function changeStatus(Status $status): void
{
$this->statuses[] = new OrderStatus($this, $status);
}
КГ
public function confirm(): void
{
$this->statuses[] = new OrderStatus($this, Status::confirm());
}