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

Ошибка удаления в списке #99

Closed
falur opened this issue Jun 9, 2017 · 2 comments
Closed

Ошибка удаления в списке #99

falur opened this issue Jun 9, 2017 · 2 comments

Comments

@falur
Copy link

falur commented Jun 9, 2017

Уидает исключение

Unknown primary 0 found when trying to query OrderStatus row.

$this->helper->getPk()

возвращает массив и в ключе 0 вмето ID

@falur
Copy link
Author

falur commented Jun 9, 2017

В EntityManager в методе delete

заменить

$result = $model::delete($this->helper->getPk()); // удаляем основную сущность

на

 $result = $model::delete($this->itemId); // удаляем основную сущность

будет время сделаю pull request

@denx-b
Copy link
Contributor

denx-b commented Aug 15, 2017

Ишью можно закрыть, проблема, как я вижу, уже решена.

@ASGAlex ASGAlex closed this as completed Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants