public function getRelations()
    {
        $bag = $this->getParameter('relations');

        if (!($bag instanceof Bag)) {
            $bag = new Bag();
        }

        $this->setParameter('relations', $bag);

        return $bag;
    }