获取分析错误:语法错误,意外'/';,期望'&';或运行应用程序/控制台原则时出现变量(T


Getting Parse Error: syntax error, unexpected '/', expecting '&' or variable (T_VARIABLE) error when running app/console doctrine:schema:update

运行app/console doctrine:schema:update --force但返回:

[Symfony'Component'Debug'Exception'FatalErrorException]                            
Parse Error: syntax error, unexpected '/', expecting '&' or variable (T_VARIABLE)

这是包含错误的文件:

<?php
namespace Admin'Store'Product'Type'TypeBundle'Entity;
use Doctrine'ORM'Mapping as ORM;
/**
 * Type
 *
 * @ORM'Table()
 * @ORM'Entity
 */
class Type
{
    /**
     * @var integer
     *
     * @ORM'Column(name="id", type="integer")
     * @ORM'Id
     * @ORM'GeneratedValue(strategy="AUTO")
     */
    private $id;
    /**
    * @ORM'OneToOne(targetEntity="Admin/Store/Product/Type/TypeBundle/Entity/Kind")
    */
    private $kind;
    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * Set kind
     *
     * @param 'Admin'Store'Product'Type'TypeBundle'Entity'Admin/Store/Product/Type/TypeBundle/Entity/Kind $kind
     *
     * @return Type
     */
    public function setKind('Admin'Store'Product'Type'TypeBundle'Entity'Admin/Store/Product/Type/TypeBundle/Entity/Kind $kind = null)
    {
        $this->kind = $kind;
        return $this;
    }
    /**
     * Get kind
     *
     * @return 'Admin'Store'Product'Type'TypeBundle'Entity'Admin/Store/Product/Type/TypeBundle/Entity/Kind
     */
    public function getKind()
    {
        return $this->kind;
    }
}

所有的动作都是用symfony的控制台完成的,实际上我什么都没碰!但我不明白这个错误是从哪里来的。

这样尝试:

public function setKind('Admin'Store'Product'Type'TypeBundle'Entity'Kind $kind = null)