草庐IT

saveEmbeddedForms

全部标签

php - Doctrine postSave、postUpdate 和国际化(检测修改)

我在使用我正在开发的Symfony1.4项目中使用i18n行为的表时遇到了一些小问题。例如,在YAML上定义的以下模型(我有其他遵循相同模式的模型):Subject:actAs:Timestampable:~I18n:fields:[name]columns:name:{type:string(255),notnull:true}relations:Publications:class:PublicationrefClass:PublicationSubjectlocal:subject_idforeign:publication_id我只有国际化的名称字段,但在保存时(在更改表单上的