1

我已经将 zend 与学说集成在一起,一切正常,但是当我开始使用学说 cli 生成实体时:

例子:

<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Tag
 */
class Tag
{
    /**
     * @var string $tagName
     */
    private $tagName;

    /**
     * @var \Doctrine\Common\Collections\ArrayCollection
     */
    private $eventevent;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->eventevent = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Get tagName
     *
     * @return string 
     */
    public function getTagName()
    {
        return $this->tagName;
    }

    /**
     * Add eventevent
     *
     * @param Event $eventevent
     * @return Tag
     */
    public function addEventevent(\Event $eventevent)
    {
        $this->eventevent[] = $eventevent;

        return $this;
    }

    /**
     * Remove eventevent
     *
     * @param Event $eventevent
     */
    public function removeEventevent(\Event $eventevent)
    {
        $this->eventevent->removeElement($eventevent);
    }

    /**
     * Get eventevent
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getEventevent()
    {
        return $this->eventevent;
    }
}
4

0 回答 0