parent
6377ed4bc7
commit
fd757054e7
|
@ -267,7 +267,9 @@ abstract class ObjectController extends ActionController
|
||||||
(int) $id,
|
(int) $id,
|
||||||
$this->db()
|
$this->db()
|
||||||
);
|
);
|
||||||
} else {
|
} elseif ($this->getRequest()->isApiRequest()) {
|
||||||
|
$this->getResponse()->setHttpResponseCode(422);
|
||||||
|
|
||||||
throw new InvalidPropertyException(
|
throw new InvalidPropertyException(
|
||||||
'Cannot load object, missing parameters'
|
'Cannot load object, missing parameters'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue