Advertisement
Guest User

Untitled

a guest
Oct 29th, 2012
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. use Doctrine\ORM\Mapping AS ORM;
  3. namespace Packagist\WebBundle\Entity;
  4.  
  5. /**
  6.  * @ORM\Entity(repositoryClass="Packagist\WebBundle\Entity\PackageRepository")
  7.  * @ORM\Table(
  8.  *  name="package",
  9.  *  indexes={
  10.  *   @ORM\Index(name="indexed_idx", columns={"indexedAt","crawledAt"}),
  11.  *   @ORM\Index(name="crawled_idx", columns={"crawledAt"}),
  12.  *   @ORM\Index(name="dumped_idx", columns={"dumpedAt"})
  13.  *  },
  14.  *  uniqueConstraints={@ORM\UniqueConstraint(name="name_idx", columns={"name"})}
  15.  * )
  16.  */
  17. class Package
  18. {
  19.  /**
  20.   * @ORM\Id
  21.   * @ORM\Column(type="integer")
  22.   * @ORM\GeneratedValue(strategy="AUTO")
  23.   */
  24.  private $id;
  25.  
  26.  /**
  27.   * @ORM\Column(nullable=true)
  28.   */
  29.  private $name;
  30.  
  31.  /**
  32.   * @ORM\Column(nullable=true)
  33.   */
  34.  private $type;
  35.  
  36.  /**
  37.   * @ORM\Column(type="text", nullable=true)
  38.   */
  39.  private $description;
  40.  
  41.  /**
  42.   * @ORM\Column(type="datetime", nullable=true)
  43.   */
  44.  private $createdAt;
  45.  
  46.  /**
  47.   * @ORM\Column(type="datetime", nullable=true)
  48.   */
  49.  private $updatedAt;
  50.  
  51.  /**
  52.   * @ORM\Column(type="datetime", nullable=true)
  53.   */
  54.  private $crawledAt;
  55.  
  56.  /**
  57.   * @ORM\Column(type="datetime", nullable=true)
  58.   */
  59.  private $indexedAt;
  60.  
  61.  /**
  62.   * @ORM\Column(type="datetime", nullable=true)
  63.   */
  64.  private $dumpedAt;
  65.  
  66.  /**
  67.   * @ORM\Column(type="boolean", nullable=true)
  68.   */
  69.  private $autoUpdated;
  70. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement