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();
        }
    }