Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sorting by many-to-one relationship #2067

Closed
javiereguiluz opened this issue Feb 22, 2018 · 2 comments
Closed

Error when sorting by many-to-one relationship #2067

javiereguiluz opened this issue Feb 22, 2018 · 2 comments
Labels

Comments

@javiereguiluz
Copy link
Collaborator

Copied from this comment by @numerogeek in a closed issue:


I still have this issue using symfony 2.8 and the latest version of easyAdmin.
When I try to sort trough a manyToOne attribute, it throw me an error like the one on this issue. ("undefined index).

My config:

Intervention:
            class: AppBundle\Entity\Intervention
            label: Interventions
            list:
                fields:
                    - model
                    - price

model is the oneToMany attribute. this entity has a __toString method which return $this->name.
I also added the @ORM\OneToMany(targetEntity="AppBundle\Entity\Intervention", mappedBy="model") in the Model Entity.

Any idea ?
Thank you !

@MConrotte
Copy link

I have this issue too with symfony 2.8...

@javiereguiluz
Copy link
Collaborator Author

I'm closing this issue because we're starting a new phase in the history of this bundle (see #2059). We've moved it into a new GitHub organization and we need to start from scratch: no past issues, no pending pull requests, etc.

I understand if you are angry or disappointed by this, but we really need to "reset" everything in order to reignite the development of this bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants