DoctrineExtensions: [sortable] removing entities causes DQL error
When removing entities from sortable crashes, in sortableListener at line 328 with invalid SQL:
UPDATE SCMS\Entity\NewsArticlePhoto n SET n.position = n.position - 1 WHERE n.position >= AND n.news_article = :val___0
array (size=3)
'start' => null
'stop' => int -1
'delta' => int -1
tested on v2.3
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Reactions: 1
- Comments: 24 (8 by maintainers)
Commits related to this issue
- Hot fix for issue #370 It works in my case, tests required — committed to ksn135/DoctrineExtensions by ksn135 8 years ago
- Fixed DQL error on update #370 — committed to Padam87/DoctrineExtensions by Padam87 8 years ago
- Fixed DQL error on update #370 — committed to Padam87/DoctrineExtensions by Padam87 8 years ago
I had the same error. I could fix it with setting the default value of the position.
Terribly sorry about that, I forgot that we’re all here to serve you with perfect free software.