original_string: 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);
  				}
  				
  			}
  		}
  	}
code: 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);
  				}
  				
  			}
  		}
  	}
code_tokens: 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 ) ; } } } }
docstring: Add unresovled objects to load queue
  
  @param mixed 			$data 		data to be parsed
  @param array | integer 	$relations 	relations to be loaded
  
  @return void
docstring_tokens: Add unresovled objects to load queue