public function createRelationRoute($relation, $action) { $route = $this->pathPrefix . Inflector::camel2id($this->generateRelationTo($relation), '-', true) . '/' . $action; return $route; }