public function getRelationsForModel(Model $model) {
        if (empty($this->models)) {
            throw new \LogicException('AujaConfigurator not configured yet! Call configure first.');
        }

        return !is_null($model) && isset($this->relations[$model->getName()]) ? $this->relations[$model->getName()] : [];
    }
public function getRelationsForModel(Model $model) {
        if (empty($this->models)) {
            throw new \LogicException('AujaConfigurator not configured yet! Call configure first.');
        }

        return !is_null($model) && isset($this->relations[$model->getName()]) ? $this->relations[$model->getName()] : [];
    }
Returns an array of `Relations` for given `Model`.

@param Model $model The `Model`.

@return Relation[] The `Relations`.