vendor/gedmo/doctrine-extensions/src/Loggable/Entity/LogEntry.php line 42

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Doctrine Behavioral Extensions package.
  4.  * (c) Gediminas Morkevicius <gediminas.morkevicius@gmail.com> http://www.gediminasm.org
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  */
  8. namespace Gedmo\Loggable\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Loggable\Entity\MappedSuperclass\AbstractLogEntry;
  11. use Gedmo\Loggable\Entity\Repository\LogEntryRepository;
  12. use Gedmo\Loggable\Loggable;
  13. /**
  14.  * Gedmo\Loggable\Entity\LogEntry
  15.  *
  16.  * @ORM\Table(
  17.  *     name="ext_log_entries",
  18.  *     options={"row_format": "DYNAMIC"},
  19.  *     indexes={
  20.  *         @ORM\Index(name="log_class_lookup_idx", columns={"object_class"}),
  21.  *         @ORM\Index(name="log_date_lookup_idx", columns={"logged_at"}),
  22.  *         @ORM\Index(name="log_user_lookup_idx", columns={"username"}),
  23.  *         @ORM\Index(name="log_version_lookup_idx", columns={"object_id", "object_class", "version"})
  24.  *     }
  25.  * )
  26.  * @ORM\Entity(repositoryClass="Gedmo\Loggable\Entity\Repository\LogEntryRepository")
  27.  *
  28.  * @phpstan-template T of Loggable|object
  29.  *
  30.  * @phpstan-extends AbstractLogEntry<T>
  31.  */
  32. #[ORM\Entity(repositoryClassLogEntryRepository::class)]
  33. #[ORM\Table(name'ext_log_entries'options: ['row_format' => 'DYNAMIC'])]
  34. #[ORM\Index(name'log_class_lookup_idx'columns: ['object_class'])]
  35. #[ORM\Index(name'log_date_lookup_idx'columns: ['logged_at'])]
  36. #[ORM\Index(name'log_user_lookup_idx'columns: ['username'])]
  37. #[ORM\Index(name'log_version_lookup_idx'columns: ['object_id''object_class''version'])]
  38. class LogEntry extends AbstractLogEntry
  39. {
  40.     /*
  41.      * All required columns are mapped through inherited superclass
  42.      */
  43. }