Repositories/RelationLoader.php
protected function addToQueue($object, $relations)
	{
		if( ! array_key_exists($object->type, self::$loadQueue) )
		{
			self::$loadQueue[$object->type] = [];
		}
		$relationsKey = base64_encode(json_encode($relations));
		if( ! array_key_exists($relationsKey, self::$loadQueue[$object->type]) )
		{
			self::$loadQueue[$object->type][$relationsKey] = [ 'type' => $object->type, 'ids' => [], 'relations' => $relations ];
		}
		self::$loadQueue[$object->type][$relationsKey]['ids'][] = $object->id;

	}
protected function addToQueue($object, $relations)
	{
		if( ! array_key_exists($object->type, self::$loadQueue) )
		{
			self::$loadQueue[$object->type] = [];
		}
		$relationsKey = base64_encode(json_encode($relations));
		if( ! array_key_exists($relationsKey, self::$loadQueue[$object->type]) )
		{
			self::$loadQueue[$object->type][$relationsKey] = [ 'type' => $object->type, 'ids' => [], 'relations' => $relations ];
		}
		self::$loadQueue[$object->type][$relationsKey]['ids'][] = $object->id;

	}
protected function addToQueue ( $ object , $ relations ) { if ( ! array_key_exists ( $ object -> type , self :: $ loadQueue ) ) { self :: $ loadQueue [ $ object -> type ] = [ ] ; } $ relationsKey = base64_encode ( json_encode ( $ relations ) ) ; if ( ! array_key_exists ( $ relationsKey , self :: $ loadQueue [ $ object -> type ] ) ) { self :: $ loadQueue [ $ object -> type ] [ $ relationsKey ] = [ 'type' => $ object -> type , 'ids' => [ ] , 'relations' => $ relations ] ; } self :: $ loadQueue [ $ object -> type ] [ $ relationsKey ] [ 'ids' ] [ ] = $ object -> id ; }
Add object to loadQueue if it's specified in relations

@param stdClass 		$object 	object to add
@param array | int 	$relations 	relations to check

@return void
Add object to loadQueue if it s specified in relations