Image 上传带有symfony的头像始终为空

Image 上传带有symfony的头像始终为空,image,upload,symfony-1.4,sfguard,symfony-plugins,Image,Upload,Symfony 1.4,Sfguard,Symfony Plugins,我已经试了两天了,每次我上传一张图片,在数据库中,我在阿凡达栏中得到空值,甚至没有上传! 我使用的是symfony 1.4,我有sfdoctrineguard和sfforkeddoctrineaplyplugin(我想这就是问题所在,因为我记得在使用它之前,我第一次启动这个项目的时候) 我正在使用本教程中的代码: 我想我和这家伙有同样的问题: 有没有人使用sfforkedappluplugin成功上传了一个头像 这是我的用户模式: User: inheritance: type:

我已经试了两天了,每次我上传一张图片,在数据库中,我在阿凡达栏中得到空值,甚至没有上传! 我使用的是symfony 1.4,我有sfdoctrineguard和sfforkeddoctrineaplyplugin(我想这就是问题所在,因为我记得在使用它之前,我第一次启动这个项目的时候)

我正在使用本教程中的代码:

我想我和这家伙有同样的问题:

有没有人使用sfforkedappluplugin成功上传了一个头像

这是我的用户模式:

User:
  inheritance:
    type: column_aggregation
    extends: sfGuardUserProfile
  columns:
    sexe:
      type: string(1)
      notnull: true
    birthday:
      type: timestamp
    photo:
      type: string(255)
    thumbnail:
      type: string(255)
    mobile:
      type: string(50)
      notnull: true
      unique: true
    address:
      type: string(255)
      notnull: true
    ip_inscription:
      type: string(32)
    is_online:
      type: boolean
      default: 0
    status:
      type: string(255)
    aboutme:
      type: string(255)
我的头像属性是照片

那么有没有办法解决这个问题? 顺便说一句,我使用简单的sfwidgetforminputfile尝试了正常的jobeet1.4教程进行上传,但没有成功:(
此外,我还将我的照片文件夹777和www数据作为其所有者!

我可能已经找到了解决方案,但我不确定我是否还需要您的意见

或者将列photo添加到表sfGuardUser中,然后它们嵌入一个表单,其中只包含我的registerform中的photo

或者用sfGuardUser以1:1的关系创建新的表格照片,并将其嵌入我的注册表中,但我认为这会产生一些额外的查询!在这里,我也完全不知道如何做,一些提示或链接可能会对我有很大帮助


提前发送thx!

我不知道它是否有用,但是:$this->form->getValue('photo');也不提供任何内容$request->getFiles($this->form->getName())是空的!!