SonataEasyExtendsBundle功能包:概述
SonataEasyExtendsBundle is a prototype for generating a valid bundle structure from a Vendor Bundle. The tool is started with the simple command line: sonata:easy-extends:generate.
SonataEasyExtendsBundle 可以从供应商所提供的功能包中生成一个合法的功能包结构原型。这个工具从一个简单的命令行开始:sonata:easy-extends:generate
The command will generate:
该命令可以生成
all required directories for one bundle (controller, config, doctrine, views, ...)
功能包所要求的全部目录(如生成controller、config、doctrine和views目录等等)
the mapping and entity files from those defined in the CPB. The SuperClass must be prefixed by BaseXXXXXX.
在CPB中定义的映射文件和实体文件。超级类必须添加Base前缀,如BaseXXXXXX
the table name from the bundle name + entity name. (blog__post, where blog is the BlogBundle and Post the entity name)
数据表名由功能包名+实体名组合而成(如blog__post,该表名是由BlogBundle功能包名的Blog+Post实体名组合而成
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。