public function getRelationManager(EntityContract $entity)
    {
        $key = $entity->{$this->getRelationKey()};

        if (!isset($this->relations[$key])) {
            return null;
        }

        $class = $this->relations[$key];

        return new $class($this->getManager()->getAgent());
    }