private function resolveRelations()
    {
        foreach ($this->entityDefinitions as $definition) {
            $this->resolveBelongsTo($definition);
            $this->resolveHasOneOrMany($definition);
            $this->resolveHasManyThrough($definition);
        }
    }