Symfony2 issues...
Here is what happens when I try to run the command to generate entities for this
However it works fine for other php classes:
Here is the code in question that I am trying to generate entities from:
Any ideas?
Log.php
<?php namespace GuardShack\ReportBundle\Entity; use Doctrine\ORM\Mapping as ORM; use GuardShack\UserBundle\Entity\User; use GuardShack\ClientBundle\Entity\Site; use GuardShack\ClientBundle\Entity\Client; /** * Log * * @ORM\Table(name="gs_log") * @ORM\Entity(repositoryClass="GuardShack\ReportBundle\Entity\LogRepository") */ class Log { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="title", type="string", length=255) */ private $title; /** * @var string * * @ORM\Column(name="body", type="string", length=255) */ private $body; /** * @var \DateTime * * @ORM\Column(name="dtg", type="datetime") */ private $dtg; /** * @ORM\ManyToOne(targetEntity="GuardShack\UserBundle\Entity\User", fetch="EAGER") * @ORM\JoinColumn(referencedColumnName="id", nullable=false) */ private $author; /** * @ORM\ManyToOne(targetEntity="GuardShack\ClientBundle\Entity\Site", fetch="EAGER") * @ORM\JoinColumn(referencedColumnName="id", nullable=true) */ private $site; /** * @ORM\ManyToOne(targetEntity="GuardShack\ClientBundle\Entity\Client", fetch="EAGER") * @ORM\JoinColumn(referencedColumnName="id", nullable=true) */ private $client; /** * @ORM\ManyToOne(targetEntity="GuardShack\ReportBundle\Entity\Type", fetch="EAGER") * @ORM\JoinColumn(referencedColumnName="id", nullable=true) */ private $type; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set title * * @param string $title * * @return Log */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * Set body * * @param string $body * * @return Log */ public function setBody($body) { $this->body = $body; return $this; } /** * Get body * * @return string */ public function getBody() { return $this->body; } /** * Set dtg * * @param \DateTime $dtg * * @return Log */ public function setDtg($dtg) { $this->dtg = $dtg; return $this; } /** * Get dtg * * @return \DateTime */ public function getDtg() { return $this->dtg; } /** * @return User */ public function getAuthor() { return $this->author; } /** * @param User $author */ public function setAuthor(User $author) { $this->author = $author; } }
No comments:
Post a Comment