protected function loadQueue()
	{
		$loadQueue = self::$loadQueue;

		foreach ($loadQueue as $type => $queries)
		{
			foreach ($queries as $query)
			{
				$ids = [];
				foreach ($query['ids'] as $id)
				{
					if( Trunk::has([$id, $query['relations']], $type) )
					{
						$object = Trunk::get([$id, $query['relations']], $type);
						$this->addIncludes($object);
						continue;
					}

					$ids[] = $id;
				}

				if( empty($ids) )
				{
					continue;
				}

				$locale = null;

				if( ! empty($this->meta['locale']) )
				{
					$locale = $this->meta['locale'];
				}

				$result = Resolver::resolve($query['type'], $query['ids'], $query['relations'], $locale);

				Trunk::put($result);
				
				$this->addIncludes($result);
			}
		}
	}
protected function loadQueue()
	{
		$loadQueue = self::$loadQueue;

		foreach ($loadQueue as $type => $queries)
		{
			foreach ($queries as $query)
			{
				$ids = [];
				foreach ($query['ids'] as $id)
				{
					if( Trunk::has([$id, $query['relations']], $type) )
					{
						$object = Trunk::get([$id, $query['relations']], $type);
						$this->addIncludes($object);
						continue;
					}

					$ids[] = $id;
				}

				if( empty($ids) )
				{
					continue;
				}

				$locale = null;

				if( ! empty($this->meta['locale']) )
				{
					$locale = $this->meta['locale'];
				}

				$result = Resolver::resolve($query['type'], $query['ids'], $query['relations'], $locale);

				Trunk::put($result);
				
				$this->addIncludes($result);
			}
		}
	}
protected function loadQueue ( ) { $ loadQueue = self :: $ loadQueue ; foreach ( $ loadQueue as $ type => $ queries ) { foreach ( $ queries as $ query ) { $ ids = [ ] ; foreach ( $ query [ 'ids' ] as $ id ) { if ( Trunk :: has ( [ $ id , $ query [ 'relations' ] ] , $ type ) ) { $ object = Trunk :: get ( [ $ id , $ query [ 'relations' ] ] , $ type ) ; $ this -> addIncludes ( $ object ) ; continue ; } $ ids [ ] = $ id ; } if ( empty ( $ ids ) ) { continue ; } $ locale = null ; if ( ! empty ( $ this -> meta [ 'locale' ] ) ) { $ locale = $ this -> meta [ 'locale' ] ; } $ result = Resolver :: resolve ( $ query [ 'type' ] , $ query [ 'ids' ] , $ query [ 'relations' ] , $ locale ) ; Trunk :: put ( $ result ) ; $ this -> addIncludes ( $ result ) ; } } }
Load objects from queue

@return void
Load objects from queue