public function queueUnresolvedObjects($data, $relations)
	{
		if( is_object($data) )
		{

			if( $data instanceof Model )
			{
				$data = $data->getData();
			}
			if( !$this->resolved($data) )
			{
				$this->addToQueue($data, $relations);
				return;
			}

			$data = get_object_vars($data);

		}

		if( is_array($data) )
		{
			foreach ($data as $key => $value)
			{
				if(is_int($key))
				{
					$this->queueUnresolvedObjects($value, $relations);
				}
				if($this->hasRelation($key, $relations))
				{
					$nestedRelations = $this->getNestedRelations($key, $relations);
					$this->queueUnresolvedObjects($value, $nestedRelations);
				}
				
			}
		}
	}
public function queueUnresolvedObjects($data, $relations)
	{
		if( is_object($data) )
		{

			if( $data instanceof Model )
			{
				$data = $data->getData();
			}
			if( !$this->resolved($data) )
			{
				$this->addToQueue($data, $relations);
				return;
			}

			$data = get_object_vars($data);

		}

		if( is_array($data) )
		{
			foreach ($data as $key => $value)
			{
				if(is_int($key))
				{
					$this->queueUnresolvedObjects($value, $relations);
				}
				if($this->hasRelation($key, $relations))
				{
					$nestedRelations = $this->getNestedRelations($key, $relations);
					$this->queueUnresolvedObjects($value, $nestedRelations);
				}
				
			}
		}
	}
public function queueUnresolvedObjects ( $ data , $ relations ) { if ( is_object ( $ data ) ) { if ( $ data instanceof Model ) { $ data = $ data -> getData ( ) ; } if ( ! $ this -> resolved ( $ data ) ) { $ this -> addToQueue ( $ data , $ relations ) ; return ; } $ data = get_object_vars ( $ data ) ; } if ( is_array ( $ data ) ) { foreach ( $ data as $ key => $ value ) { if ( is_int ( $ key ) ) { $ this -> queueUnresolvedObjects ( $ value , $ relations ) ; } if ( $ this -> hasRelation ( $ key , $ relations ) ) { $ nestedRelations = $ this -> getNestedRelations ( $ key , $ relations ) ; $ this -> queueUnresolvedObjects ( $ value , $ nestedRelations ) ; } } } }
Add unresovled objects to load queue

@param mixed 			$data 		data to be parsed
@param array | integer 	$relations 	relations to be loaded

@return void
Add unresovled objects to load queue