Symfony1 加载模式问题

Symfony1 加载模式问题,symfony1,doctrine,Symfony1,Doctrine,我有以下schema.yml: Category: connection: doctrine tableName: category columns: id: type: integer(8) fixed: false unsigned: false primary: true autoincrement: true name: type: string(255) fixed: fal

我有以下schema.yml:

Category:
  connection: doctrine
  tableName: category
  columns:
    id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: true
      autoincrement: true
    name:
      type: string(255)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
    url_name:
      type: string(255)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
  relations:
    SCategory:
      local: id
      foreign: category_id
      type: many
SCategory:
  connection: doctrine
  tableName: s_category
  columns:
    id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: true
      autoincrement: true
    category_id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
    name:
      type: string(255)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
    url_name:
      type: string(255)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
  relations:
    Category:
      local: category_id
      foreign: id
      type: one
    SsCategory:
      local: id
      foreign: s_category_id
      type: many
SsCategory:
  connection: doctrine
  tableName: ss_category
  columns:
    id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: true
      autoincrement: true
    s_category_id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
    name:
      type: string(255)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
    url_name:
      type: string(255)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
  relations:
    SCategory:
      local: s_category_id
      foreign: id
      type: one
当我尝试加载以下数据时:

Category:
   TV_HiFi_video:
      name:TV, HiFi & vidéo
SCategory:
   Elements_separes_Hi_Fi:
       name:Eléments séparés Hi Fi
       category_id:TV_HiFi_video
SsCategory:
   Amplificateur:
       name:Amplificateur
       s_category_id:Elements_separes_Hi_Fi
它说“数据已成功加载”,但数据库中未添加任何数据。
干杯

你是怎么检查的?例如,您是否从类别运行了
/symfony学说:dql“
?我是如何检查的?顺便说一句,我运行了启动项目时运行的常规查询您使用什么命令加载数据?你是如何检查数据的?我猜您正在使用
原则:数据加载
——如果添加
-t
标志会发生什么?你有更好的信息吗?这就是我从-t得到的:你在YAML fixture中的列名后面缺少空格吗?