change attribute name to object in api response #261
This commit is contained in:
parent
341cb5fcbc
commit
7468573486
|
@ -146,7 +146,7 @@ class REST_Logs_Controller extends REST_Controller {
|
|||
}
|
||||
|
||||
if ($related_entity instanceof Entities\Entity ) {
|
||||
$item_array[ strtolower($related_entity->get_repository()->get_name()) ] = $related_entity->_toArray();
|
||||
$item_array[ 'object' ] = $related_entity->_toArray();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue