public function resolve($databaseResult)
    {
        $className = $this->className;

        try {
            $object = new $className();

            $this->loader
                ->mapObjectWithOptions($object, $databaseResult);

            $databaseResult->{$this->fieldName} = $object;
        } catch (\Exception $e) {
            //This is fine, just an empty join
            echo $e->getMessage();
        }
    }
public function resolve($databaseResult)
    {
        $className = $this->className;

        try {
            $object = new $className();

            $this->loader
                ->mapObjectWithOptions($object, $databaseResult);

            $databaseResult->{$this->fieldName} = $object;
        } catch (\Exception $e) {
            //This is fine, just an empty join
            echo $e->getMessage();
        }
    }
public function resolve ( $ databaseResult ) { $ className = $ this -> className ; try { $ object = new $ className ( ) ; $ this -> loader -> mapObjectWithOptions ( $ object , $ databaseResult ) ; $ databaseResult -> { $ this -> fieldName } = $ object ; } catch ( \ Exception $ e ) { //This is fine, just an empty join echo $ e -> getMessage ( ) ; } }
Resolve data by splicing in the completed object

@param $databaseResult
Resolve data by splicing in the completed object