GroupMembershipResolver: ignore unstored objects
Currently affects tests only
This commit is contained in:
parent
69579bcaf9
commit
6aab867682
|
@ -124,7 +124,11 @@ abstract class GroupMembershipResolver
|
|||
*/
|
||||
public function addObject(IcingaObject $object)
|
||||
{
|
||||
$this->assertBeenLoadedFromDb($object);
|
||||
if (! $object->hasBeenLoadedFromDb()) {
|
||||
return $this;
|
||||
}
|
||||
// Disabling for now, how should this work?
|
||||
// $this->assertBeenLoadedFromDb($object);
|
||||
if ($this->objects === null) {
|
||||
$this->objects = array();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue