added 4.4 config file (#1307)

This commit is contained in:
Yorkie Chadwick
2022-02-19 11:08:48 +01:00
committed by GitHub
parent cb4354041a
commit c35276841e
8 changed files with 326 additions and 0 deletions
@@ -0,0 +1,122 @@
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Gedmo\Mapping\Annotation as Gedmo;
use Networking\InitCmsBundle\Entity\BasePage;
use Doctrine\ORM\Mapping as ORM;
use Networking\InitCmsBundle\Model\ContentRoute;
/**
*
* @author Yorkie Chadwick <y.chadwick@networking.ch>
*
* @ORM\Entity
* @ORM\Table(name="page",
* uniqueConstraints={@ORM\UniqueConstraint(name="path_idx", columns={
* "path", "locale"
* })}
* )
* @ORM\HasLifecycleCallbacks()
*/
class Page extends BasePage{
/**
* @var integer $id
*
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
protected $id;
/**
* @var ContentRoute
* @ORM\OneToOne(
* targetEntity = "Networking\InitCmsBundle\Entity\ContentRoute",
* cascade={"remove", "persist"}
* )
* @ORM\JoinColumn(name="content_route_id", referencedColumnName="id")
*/
protected $contentRoute;
/**
* @ORM\OneToMany(targetEntity="Networking\InitCmsBundle\Entity\LayoutBlock",
* mappedBy="page",
* cascade={"remove", "persist"},
* orphanRemoval=true
* )
* @ORM\OrderBy({"sortOrder" = "ASC"})
*/
protected $layoutBlock;
/**
* @ORM\OneToMany(targetEntity="Networking\InitCmsBundle\Entity\MenuItem",
* mappedBy="page",
* cascade={"remove"},
* orphanRemoval=true
* )
*/
protected $menuItem;
/**
* @ORM\OneToMany(targetEntity="Networking\InitCmsBundle\Entity\PageSnapshot",
* mappedBy="page",
* cascade={"remove"},
* orphanRemoval=true
* )
* @ORM\OrderBy({"version" = "DESC"})
*/
protected $snapshots;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Page",
* mappedBy="parent"
* )
*/
protected $children;
/**
* @var Page
* @ORM\ManyToOne(targetEntity="App\Entity\Page" )
* @ORM\JoinColumn(name="alias_id", referencedColumnName="id", onDelete="SET NULL")
*/
protected $alias;
/**
* @var Page
* @ORM\ManyToOne(targetEntity="App\Entity\Page", inversedBy="children", cascade="persist" )
* @ORM\JoinColumn(name="parent_id", referencedColumnName="id", onDelete="SET NULL")
* @Gedmo\TreeParent
*/
protected $parent;
/**
* @var ArrayCollection $originals
* @ORM\ManyToMany(
* targetEntity="App\Entity\Page",
* inversedBy="translations",
* cascade={"persist"}
* )
* @ORM\JoinTable(
* name="page_translation",
* joinColumns={
* @ORM\JoinColumn(name="translation_id", referencedColumnName="id")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="original_id", referencedColumnName="id")
* }
* )
*/
protected $originals;
/**
* @var ArrayCollection $translations
* @ORM\ManyToMany(
* targetEntity="App\Entity\Page",
* mappedBy="originals",
* cascade={"persist"}
* )
*/
protected $translations;
}
@@ -0,0 +1,31 @@
<?php
namespace App\Entity;
use Networking\InitCmsBundle\Entity\BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="fos_user_user")
* @ORM\Entity()
*/
class User extends BaseUser{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var \Networking\InitCmsBundle\Model\AdminSettings
* @ORM\Column(name="admin_settings", type="object", nullable=true)
*/
protected $adminSettings;
}