Core/Executor/ObjectStateGroupManager.php 1 location
|
@@ 35-39 (lines=5) @@
|
| 32 |
|
*/ |
| 33 |
|
protected function create() |
| 34 |
|
{ |
| 35 |
|
foreach(array('names', 'identifier') as $key) { |
| 36 |
|
if (!isset($this->dsl[$key])) { |
| 37 |
|
throw new \Exception("The '$key' key is missing in a object state group creation definition"); |
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
$objectStateService = $this->repository->getObjectStateService(); |
| 42 |
|
|
Core/Executor/ObjectStateManager.php 1 location
|
@@ 44-48 (lines=5) @@
|
| 41 |
|
*/ |
| 42 |
|
protected function create() |
| 43 |
|
{ |
| 44 |
|
foreach(array('object_state_group', 'names', 'identifier') as $key) { |
| 45 |
|
if (!isset($this->dsl[$key])) { |
| 46 |
|
throw new \Exception("The '$key' key is missing in a object state creation definition"); |
| 47 |
|
} |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
if (!count($this->dsl['names'])) { |
| 51 |
|
throw new \Exception('No object state names have been defined. Need to specify at least one to create the state.'); |