0
我已經看了看網站,找不到任何類似的情況。但是,在運行propel時出現以下錯誤消息:model:build in the console。 (請注意此xml是從使用反向模式命令,然後轉移到SCHEMA.XML):Symfony2無法建立scheme.xml(推動)
[RuntimeException的]
SiteMobileBundle:請限定package
屬性或namespace
ATT ribute用於模式schema.xml
下面是我的schema.xml
<database name="default"
namespace="Site\MobileBundle\Model"
defaultIdMethod="native"
>
<table name="additional_photos" phpName="AdditionalPhotos" idMethod="native">
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="type" phpName="Type" type="VARCHAR" size="50" required="true"/>
<column name="thumbnail" phpName="Thumbnail" type="VARCHAR" size="100" required="true"/>
<column name="image" phpName="Image" type="VARCHAR" size="100" required="true"/>
<vendor type="mysql">
<parameter name="Engine" value="MyISAM"/>
</vendor>
</table>
開始正如你所看到的,命名空間已在schema.xml中設置,有誰知道爲什麼會出現此錯誤?
預先感謝您。