Browse Source

Revert "Allow "islandora_object" entities to be loaded."

This reverts commit 598e68980e.
pull/580/head
Adam Vessey 10 years ago
parent
commit
88304774a9
  1. 10
      includes/object.entity_controller.inc

10
includes/object.entity_controller.inc

@ -29,13 +29,9 @@ class IslandoraObjectEntityController implements DrupalEntityControllerInterface
* An array of loaded objects. * An array of loaded objects.
*/ */
public function load($ids = array(), $conditions = array()) { public function load($ids = array(), $conditions = array()) {
if (isset($conditions['id'])) { if (!empty($conditions)) {
// Allow loading by specifying the ID as a property as a work-around, // TODO: Allow loading by specifying IDs in the condition.
// since some components dealing with entities expect IDs to be numeric. throw new Exception('Conditions not implemented.');
$ids = array_merge($ids, (array) $conditions['id']);
}
elseif (!empty($conditions)) {
throw new Exception('Conditions other than "id" not implemented.');
} }
$loaded = array(); $loaded = array();

Loading…
Cancel
Save