I would like to know, how I insert a new item to the relationship, and also include the "themeId" into the themeVersion:
$theme = new Themes();
$name = $this->request->getPost("name");
$theme->setName($name);
$theme->setOwnerId(1);
$theme->setDescription("asdas");
$theme->setVersionId(1);
$theme->setSlug("test");
$version = new Version();
echo $theme->getThemeId(); // How do i get my theme_id, so i can insert it into the version?
$version->setThemeId("1");
$version->setType("development");
$version->setVersion("1.0");
$version->setName("Debut");
$theme->version = $version;