Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Minor Bug - Repository Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo082 committed May 23, 2017
1 parent 7db820b commit 8049cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/EntityInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ public function getObjectWithActionID(string $actionID, int $id = null) {
* @throws NotAllowedException
*/
public function getObject(Action $action, int $id = null) {
$repo = $this->em->getRepository($this->bundle.':'.$this->name);
$bundle = str_replace(array("\\", "/"), "", $this->bundle);
$repo = $this->em->getRepository($bundle.':'.$this->name);
if ($id) {
$action->object = $repo->find($id);
$this->checkPermissionForAction($action, true, true);
Expand Down

0 comments on commit 8049cb3

Please sign in to comment.