|
@@ -162,7 +162,7 @@ class CRUDController extends Controller
|
|
$object = $this->admin->getObject($id);
|
|
$object = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$object) {
|
|
if (!$object) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$this->admin->checkAccess('delete', $object);
|
|
$this->admin->checkAccess('delete', $object);
|
|
@@ -240,7 +240,7 @@ class CRUDController extends Controller
|
|
$existingObject = $this->admin->getObject($id);
|
|
$existingObject = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$existingObject) {
|
|
if (!$existingObject) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$this->admin->checkAccess('edit', $existingObject);
|
|
$this->admin->checkAccess('edit', $existingObject);
|
|
@@ -596,7 +596,7 @@ class CRUDController extends Controller
|
|
$object = $this->admin->getObject($id);
|
|
$object = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$object) {
|
|
if (!$object) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$this->admin->checkAccess('show', $object);
|
|
$this->admin->checkAccess('show', $object);
|
|
@@ -633,7 +633,7 @@ class CRUDController extends Controller
|
|
$object = $this->admin->getObject($id);
|
|
$object = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$object) {
|
|
if (!$object) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$this->admin->checkAccess('history', $object);
|
|
$this->admin->checkAccess('history', $object);
|
|
@@ -680,7 +680,7 @@ class CRUDController extends Controller
|
|
$object = $this->admin->getObject($id);
|
|
$object = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$object) {
|
|
if (!$object) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$this->admin->checkAccess('historyViewRevision', $object);
|
|
$this->admin->checkAccess('historyViewRevision', $object);
|
|
@@ -744,7 +744,7 @@ class CRUDController extends Controller
|
|
$object = $this->admin->getObject($id);
|
|
$object = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$object) {
|
|
if (!$object) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$manager = $this->get('sonata.admin.audit.manager');
|
|
$manager = $this->get('sonata.admin.audit.manager');
|
|
@@ -877,7 +877,7 @@ class CRUDController extends Controller
|
|
$object = $this->admin->getObject($id);
|
|
$object = $this->admin->getObject($id);
|
|
|
|
|
|
if (!$object) {
|
|
if (!$object) {
|
|
- throw $this->createNotFoundException(sprintf('unable to find the object with id : %s', $id));
|
|
|
|
|
|
+ throw $this->createNotFoundException(sprintf('unable to find the object with id: %s', $id));
|
|
}
|
|
}
|
|
|
|
|
|
$this->admin->checkAccess('acl', $object);
|
|
$this->admin->checkAccess('acl', $object);
|