public static function newFromDatamapperObject($entities, $lastObjectId, $lastEloquentModel)
    {
        $eloquentModels = new static;

        foreach ($entities as $name => $item) {
            if (spl_object_hash($item) == $lastObjectId) {
                $model = $lastEloquentModel;
            } else {
                $model = Model::newFromDatamapperObject($item, $lastObjectId, $lastEloquentModel);
            }

            $eloquentModels->put($name, $model);
        }

        return $eloquentModels;
    }