public function pivotAttributes(array $pivotAttributes)
    {
        foreach ($pivotAttributes as $relatedClass => $attributes) {
            $this->pivotPopulators[$relatedClass]->setCustomAttributes($attributes);
        }

        return $this;
    }