见见捆绑包:controllerextrabundance
我也同意@javier的观点…事实上,我创建这些注释是为了以一种更描述性的方式使用它们……
@createForm
@createPaginator
@mapEntity
@log
...
你觉得这是个好主意吗?我的意思是,仅仅创建这些实体来扩展旧的实体应该能像预期的那样工作,对吧?
@createForm
@createPaginator
@mapEntity
@log
...
你觉得这是个好主意吗?我的意思是,仅仅创建这些实体来扩展旧的实体应该能像预期的那样工作,对吧?
@Javier关于命名问题的好观点。另一种可能是使用名称空间,就像我们在实体中使用@ORM\Table(), @ORM\Column() ....?你可以使用@Extra\Form…(或者除了“额外的”)。
@Nicolas您可以执行@ORM\Table(),因为您已经在文件的开头定义了ORM的名称空间
使用原则\ ORM;
当然你也可以这样做
使用Mmoreram\ controllerextrabundance \Annotation作为ControllerAnnotation;
@ControllerAnnotation \形式()
使用原则\ ORM;
当然你也可以这样做
使用Mmoreram\ controllerextrabundance \Annotation作为ControllerAnnotation;
@ControllerAnnotation \形式()
文章中的一些更正:
注释不叫Pagination,而是叫CreatePaginator。
注释不叫Form,而是CreateForm
Javier Eguiluz is a certified Symfony engineer.
Get certified! Online exams available in all countries.
Register Now使用Mmoreram\ controllerextrabundance \Annotation\Paginator创建控制器;