{"action":"closed","issue":{"url":"https://api.github.com/repos/Happyr/Doctrine-Specification/issues/115","labels_url":"https://api.github.com/repos/Happyr/Doctrine-Specification/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/Happyr/Doctrine-Specification/issues/115/comments","events_url":"https://api.github.com/repos/Happyr/Doctrine-Specification/issues/115/events","html_url":"https://github.com/Happyr/Doctrine-Specification/issues/115","id":96504202,"number":115,"title":"LogicX child is array of children ","user":{"login":"Sp0ng3b0b","id":1059942,"avatar_url":"https://avatars.githubusercontent.com/u/1059942?v=3","gravatar_id":"","url":"https://api.github.com/users/Sp0ng3b0b","html_url":"https://github.com/Sp0ng3b0b","followers_url":"https://api.github.com/users/Sp0ng3b0b/followers","following_url":"https://api.github.com/users/Sp0ng3b0b/following{/other_user}","gists_url":"https://api.github.com/users/Sp0ng3b0b/gists{/gist_id}","starred_url":"https://api.github.com/users/Sp0ng3b0b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sp0ng3b0b/subscriptions","organizations_url":"https://api.github.com/users/Sp0ng3b0b/orgs","repos_url":"https://api.github.com/users/Sp0ng3b0b/repos","events_url":"https://api.github.com/users/Sp0ng3b0b/events{/privacy}","received_events_url":"https://api.github.com/users/Sp0ng3b0b/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-22T08:09:46Z","updated_at":"2015-07-28T09:42:34Z","closed_at":"2015-07-28T09:42:34Z","body":"Im writing a seperate issue for the bug in https://github.com/Happyr/Doctrine-Specification/pull/114 \r\n\r\nI have a Handler Superclass for data management. Its subclasses are Entity Specific and can overwrite the following getEntities Method:\r\n  \r\n    public function getEntities($limit, $offset, $spec = null) {\r\n        return $this->repository->match(\r\n            Spec::andX(\r\n                $spec,\r\n                Spec::limit($limit),\r\n                Spec::offset($offset)\r\n            )\r\n        );\r\n    }\r\n\r\n\r\nNow if i dont overwrite the method to add specific spec it works. In my current case i override it with the following:\r\n\r\n    public function getEntities($limit, $offset, $spec = null) {\r\n        if($this->user) {\r\n            return parent::getEntities($limit, $offset, Spec::andX(new InMyStores($this->user->getStores()), $spec));\r\n        }\r\n        return parent::getEntities($limit,$offset);\r\n    }\r\n\r\nNow in the array_map callback $spec is actually an array of children, so its skipped right now. What can i do to fix this @Nyholm ?\r\n"}}