mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
How to manage the entity more convenient in the sonata backend #5146
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jun 8, 2016).
Originally assigned to: @guilhermeblanco on GitHub.
Hi,
I'm learning symfony2 about sonata-admin-bundle; There are three tables
goods、categoryandbrand, I want to show or edit category.name and brand.name in the backend page(goods listView),it will be very convenient for administrator to manage them;It shows category.name is built with "many-to-one" relation successfuly, and the second relation between
brand and goods is not work
I have two questions:
1、Is the "yml" file just can contain one "many-to-one" relationship?
2、If Iwant to manage the goods info in one page,(please refer the picture),what should I do?
Here is some code below:
brand.orm.yml
goods.orm.yml
category.orm.yml
Someone please help, any help appreciated.
@guilhermeblanco commented on GitHub (Jun 8, 2016):
Hi,
I wonder why you only partially described your question here, but fully
described your question on StackOverflow. If you are looking for help,
always expose as much information as you can. People that are willing to
help aren't looking to hunt your full description in order to help you.
Remember: You are looking for help, they're not looking to help you.
Anyway, already answered on StackOverflow... you have your manyToOne
described twice in your Goods YAML mapping.
On Tue, Jun 7, 2016 at 11:42 PM, liamyabou notifications@github.com wrote:
Guilherme Blanco
Lead Architect at E-Block
@ghost commented on GitHub (Jun 8, 2016):
@guilhermeblanco I got it, how can I show brand and category (info) in the list?
@Ocramius commented on GitHub (Aug 23, 2018):
Closing here - question was already answered.