We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43bda2a commit b13d6a1Copy full SHA for b13d6a1
src/StaticEntityManager.php
@@ -133,7 +133,7 @@ public function hasId($id)
133
*/
134
public function convertToId($staticEntity)
135
{
136
- if (empty($staticEntity)) {
+ if (empty($staticEntity) && '0' !== $staticEntity && 0 !== $staticEntity) {
137
return null;
138
} elseif ($staticEntity instanceof StaticEntity) {
139
return $staticEntity->getId();
0 commit comments