我在symfony中很新。我正在使用symfony 1.4,并且我已经为我的项目设置了后端,以节省一些文章。如何在生成的管理后端将列表划分为更多列表?
但是,在我的文章编辑视图中,我有一个列表,其中包含与文章过滤器的多对多关系。我在过滤器表中列举了一个枚举,给过滤器3种类型。 (将只有3,这就是为什么我没有创建3过滤器表)
在这里我的教义架构,所以你可以想像它。
detect_relations: true
Article:
columns:
article_no: { type: string(50), notnull: true }
producer: { type: string(100) }
name: { type: string(255), notnull: true }
description: { type: string(2000) }
attributes:
export: all
validate: true
Filter:
columns:
name: { type: string(255) }
type: { type: enum, values: ['Type1', 'Type2', 'Type3']}
relations:
Article:
foreignAlias: Filters
class: Article
refClass: FilterArticle
FilterArticle:
columns:
filter_id: { type: integer, primary: true }
article_id: { type: integer, primary: true }
relations:
Filter: { foreignAlias: FilterArticle }
Article: { foreignAlias: FilterArticle }
所以在我的编辑视图中,我有一个大的过滤器列表。 但我想将这个列表分成这3种不同的类型并显示3个列表。
这可能吗?我怎么能意识到这一点?我想我需要覆盖ArticleForm或FilterForm?!或者我可以只配置发生器吗?
谢谢大家的帮助下,我只能说我爱的symfony :)
问候
正在寻找类似款项:我想通过状态栏显示两个页面LD。待定物品需要单独列出,并且活动物品需要分开。 – Gowri 2012-12-04 09:49:22