mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Usr List entities / proxies / repositories
This commit is contained in:
168
lib/Doctrine/Entities/UsrList.php
Normal file
168
lib/Doctrine/Entities/UsrList.php
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Phraseanet
|
||||||
|
*
|
||||||
|
* (c) 2005-2010 Alchemy
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
|
* @link www.phraseanet.com
|
||||||
|
*/
|
||||||
|
class UsrList
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer $id
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string $name
|
||||||
|
*/
|
||||||
|
private $name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var datetime $created
|
||||||
|
*/
|
||||||
|
private $created;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var datetime $updated
|
||||||
|
*/
|
||||||
|
private $updated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Entities\UsrListOwner
|
||||||
|
*/
|
||||||
|
private $owners;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Entities\UsrListContent
|
||||||
|
*/
|
||||||
|
private $users;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->owners = new \Doctrine\Common\Collections\ArrayCollection();
|
||||||
|
$this->users = new \Doctrine\Common\Collections\ArrayCollection();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set name
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
$this->name = $name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get name
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
return $this->name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set created
|
||||||
|
*
|
||||||
|
* @param datetime $created
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->created = $created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get created
|
||||||
|
*
|
||||||
|
* @return datetime
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
return $this->created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set updated
|
||||||
|
*
|
||||||
|
* @param datetime $updated
|
||||||
|
*/
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
$this->updated = $updated;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get updated
|
||||||
|
*
|
||||||
|
* @return datetime
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
return $this->updated;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add owners
|
||||||
|
*
|
||||||
|
* @param Entities\UsrListOwner $owners
|
||||||
|
*/
|
||||||
|
public function addUsrListOwner(\Entities\UsrListOwner $owners)
|
||||||
|
{
|
||||||
|
$this->owners[] = $owners;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get owners
|
||||||
|
*
|
||||||
|
* @return Doctrine\Common\Collections\Collection
|
||||||
|
*/
|
||||||
|
public function getOwners()
|
||||||
|
{
|
||||||
|
return $this->owners;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add users
|
||||||
|
*
|
||||||
|
* @param Entities\UsrListContent $users
|
||||||
|
*/
|
||||||
|
public function addUsrListContent(\Entities\UsrListContent $users)
|
||||||
|
{
|
||||||
|
$this->users[] = $users;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get users
|
||||||
|
*
|
||||||
|
* @return Doctrine\Common\Collections\Collection
|
||||||
|
*/
|
||||||
|
public function getUsers()
|
||||||
|
{
|
||||||
|
return $this->users;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
142
lib/Doctrine/Entities/UsrListContent.php
Normal file
142
lib/Doctrine/Entities/UsrListContent.php
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Phraseanet
|
||||||
|
*
|
||||||
|
* (c) 2005-2010 Alchemy
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
|
* @link www.phraseanet.com
|
||||||
|
*/
|
||||||
|
class UsrListContent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer $id
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer $usr_id
|
||||||
|
*/
|
||||||
|
private $usr_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var datetime $created
|
||||||
|
*/
|
||||||
|
private $created;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var datetime $updated
|
||||||
|
*/
|
||||||
|
private $updated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Entities\UsrList
|
||||||
|
*/
|
||||||
|
private $list;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set usr_id
|
||||||
|
*
|
||||||
|
* @param integer $usrId
|
||||||
|
*/
|
||||||
|
public function setUsrId($usrId)
|
||||||
|
{
|
||||||
|
$this->usr_id = $usrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get usr_id
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function getUsrId()
|
||||||
|
{
|
||||||
|
return $this->usr_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set created
|
||||||
|
*
|
||||||
|
* @param datetime $created
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->created = $created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get created
|
||||||
|
*
|
||||||
|
* @return datetime
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
return $this->created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set updated
|
||||||
|
*
|
||||||
|
* @param datetime $updated
|
||||||
|
*/
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
$this->updated = $updated;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get updated
|
||||||
|
*
|
||||||
|
* @return datetime
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
return $this->updated;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set list
|
||||||
|
*
|
||||||
|
* @param Entities\UsrList $list
|
||||||
|
*/
|
||||||
|
public function setList(\Entities\UsrList $list)
|
||||||
|
{
|
||||||
|
$this->list = $list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get list
|
||||||
|
*
|
||||||
|
* @return Entities\UsrList
|
||||||
|
*/
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
return $this->list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
167
lib/Doctrine/Entities/UsrListOwner.php
Normal file
167
lib/Doctrine/Entities/UsrListOwner.php
Normal file
@@ -0,0 +1,167 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Phraseanet
|
||||||
|
*
|
||||||
|
* (c) 2005-2010 Alchemy
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
|
* @link www.phraseanet.com
|
||||||
|
*/
|
||||||
|
class UsrListOwner
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer $id
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer $usr_id
|
||||||
|
*/
|
||||||
|
private $usr_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string $role
|
||||||
|
*/
|
||||||
|
private $role;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var datetime $created
|
||||||
|
*/
|
||||||
|
private $created;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var datetime $updated
|
||||||
|
*/
|
||||||
|
private $updated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Entities\UsrList
|
||||||
|
*/
|
||||||
|
private $list;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set usr_id
|
||||||
|
*
|
||||||
|
* @param integer $usrId
|
||||||
|
*/
|
||||||
|
public function setUsrId($usrId)
|
||||||
|
{
|
||||||
|
$this->usr_id = $usrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get usr_id
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function getUsrId()
|
||||||
|
{
|
||||||
|
return $this->usr_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set role
|
||||||
|
*
|
||||||
|
* @param string $role
|
||||||
|
*/
|
||||||
|
public function setRole($role)
|
||||||
|
{
|
||||||
|
$this->role = $role;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getRole()
|
||||||
|
{
|
||||||
|
return $this->role;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set created
|
||||||
|
*
|
||||||
|
* @param datetime $created
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->created = $created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get created
|
||||||
|
*
|
||||||
|
* @return datetime
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
return $this->created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set updated
|
||||||
|
*
|
||||||
|
* @param datetime $updated
|
||||||
|
*/
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
$this->updated = $updated;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get updated
|
||||||
|
*
|
||||||
|
* @return datetime
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
return $this->updated;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set list
|
||||||
|
*
|
||||||
|
* @param Entities\UsrList $list
|
||||||
|
*/
|
||||||
|
public function setList(\Entities\UsrList $list)
|
||||||
|
{
|
||||||
|
$this->list = $list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get list
|
||||||
|
*
|
||||||
|
* @return Entities\UsrList
|
||||||
|
*/
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
return $this->list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
121
lib/Doctrine/Proxies/EntitiesUsrListContentProxy.php
Normal file
121
lib/Doctrine/Proxies/EntitiesUsrListContentProxy.php
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Proxies;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||||
|
*/
|
||||||
|
class EntitiesUsrListContentProxy extends \Entities\UsrListContent implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
private $_entityPersister;
|
||||||
|
private $_identifier;
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
public function __construct($entityPersister, $identifier)
|
||||||
|
{
|
||||||
|
$this->_entityPersister = $entityPersister;
|
||||||
|
$this->_identifier = $identifier;
|
||||||
|
}
|
||||||
|
/** @private */
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
if (!$this->__isInitialized__ && $this->_entityPersister) {
|
||||||
|
$this->__isInitialized__ = true;
|
||||||
|
|
||||||
|
if (method_exists($this, "__wakeup")) {
|
||||||
|
// call this after __isInitialized__to avoid infinite recursion
|
||||||
|
// but before loading to emulate what ClassMetadata::newInstance()
|
||||||
|
// provides.
|
||||||
|
$this->__wakeup();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||||
|
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||||
|
}
|
||||||
|
unset($this->_entityPersister, $this->_identifier);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUsrId($usrId)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setUsrId($usrId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUsrId()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUsrId();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setList(\Entities\UsrList $list)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setList($list);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
return array('__isInitialized__', 'id', 'usr_id', 'created', 'updated', 'list');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
if (!$this->__isInitialized__ && $this->_entityPersister) {
|
||||||
|
$this->__isInitialized__ = true;
|
||||||
|
$class = $this->_entityPersister->getClassMetadata();
|
||||||
|
$original = $this->_entityPersister->load($this->_identifier);
|
||||||
|
if ($original === null) {
|
||||||
|
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||||
|
}
|
||||||
|
foreach ($class->reflFields AS $field => $reflProperty) {
|
||||||
|
$reflProperty->setValue($this, $reflProperty->getValue($original));
|
||||||
|
}
|
||||||
|
unset($this->_entityPersister, $this->_identifier);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
133
lib/Doctrine/Proxies/EntitiesUsrListOwnerProxy.php
Normal file
133
lib/Doctrine/Proxies/EntitiesUsrListOwnerProxy.php
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Proxies;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||||
|
*/
|
||||||
|
class EntitiesUsrListOwnerProxy extends \Entities\UsrListOwner implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
private $_entityPersister;
|
||||||
|
private $_identifier;
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
public function __construct($entityPersister, $identifier)
|
||||||
|
{
|
||||||
|
$this->_entityPersister = $entityPersister;
|
||||||
|
$this->_identifier = $identifier;
|
||||||
|
}
|
||||||
|
/** @private */
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
if (!$this->__isInitialized__ && $this->_entityPersister) {
|
||||||
|
$this->__isInitialized__ = true;
|
||||||
|
|
||||||
|
if (method_exists($this, "__wakeup")) {
|
||||||
|
// call this after __isInitialized__to avoid infinite recursion
|
||||||
|
// but before loading to emulate what ClassMetadata::newInstance()
|
||||||
|
// provides.
|
||||||
|
$this->__wakeup();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||||
|
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||||
|
}
|
||||||
|
unset($this->_entityPersister, $this->_identifier);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUsrId($usrId)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setUsrId($usrId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUsrId()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUsrId();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setRole($role)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setRole($role);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRole()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getRole();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setList(\Entities\UsrList $list)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setList($list);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
return array('__isInitialized__', 'id', 'usr_id', 'role', 'created', 'updated', 'list');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
if (!$this->__isInitialized__ && $this->_entityPersister) {
|
||||||
|
$this->__isInitialized__ = true;
|
||||||
|
$class = $this->_entityPersister->getClassMetadata();
|
||||||
|
$original = $this->_entityPersister->load($this->_identifier);
|
||||||
|
if ($original === null) {
|
||||||
|
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||||
|
}
|
||||||
|
foreach ($class->reflFields AS $field => $reflProperty) {
|
||||||
|
$reflProperty->setValue($this, $reflProperty->getValue($original));
|
||||||
|
}
|
||||||
|
unset($this->_entityPersister, $this->_identifier);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
127
lib/Doctrine/Proxies/EntitiesUsrListProxy.php
Normal file
127
lib/Doctrine/Proxies/EntitiesUsrListProxy.php
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Proxies;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||||
|
*/
|
||||||
|
class EntitiesUsrListProxy extends \Entities\UsrList implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
private $_entityPersister;
|
||||||
|
private $_identifier;
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
public function __construct($entityPersister, $identifier)
|
||||||
|
{
|
||||||
|
$this->_entityPersister = $entityPersister;
|
||||||
|
$this->_identifier = $identifier;
|
||||||
|
}
|
||||||
|
/** @private */
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
if (!$this->__isInitialized__ && $this->_entityPersister) {
|
||||||
|
$this->__isInitialized__ = true;
|
||||||
|
|
||||||
|
if (method_exists($this, "__wakeup")) {
|
||||||
|
// call this after __isInitialized__to avoid infinite recursion
|
||||||
|
// but before loading to emulate what ClassMetadata::newInstance()
|
||||||
|
// provides.
|
||||||
|
$this->__wakeup();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||||
|
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||||
|
}
|
||||||
|
unset($this->_entityPersister, $this->_identifier);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addUsrListOwner(\Entities\UsrListOwner $owners)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::addUsrListOwner($owners);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getOwners()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getOwners();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addUsrListContent(\Entities\UsrListContent $users)
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::addUsrListContent($users);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUsers()
|
||||||
|
{
|
||||||
|
$this->__load();
|
||||||
|
return parent::getUsers();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
return array('__isInitialized__', 'id', 'name', 'created', 'updated', 'owners', 'users');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
if (!$this->__isInitialized__ && $this->_entityPersister) {
|
||||||
|
$this->__isInitialized__ = true;
|
||||||
|
$class = $this->_entityPersister->getClassMetadata();
|
||||||
|
$original = $this->_entityPersister->load($this->_identifier);
|
||||||
|
if ($original === null) {
|
||||||
|
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||||
|
}
|
||||||
|
foreach ($class->reflFields AS $field => $reflProperty) {
|
||||||
|
$reflProperty->setValue($this, $reflProperty->getValue($original));
|
||||||
|
}
|
||||||
|
unset($this->_entityPersister, $this->_identifier);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
15
lib/Doctrine/Repositories/UsrListContentRepository.php
Normal file
15
lib/Doctrine/Repositories/UsrListContentRepository.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Repositories;
|
||||||
|
|
||||||
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* UsrListContentRepository
|
||||||
|
*
|
||||||
|
* This class was generated by the Doctrine ORM. Add your own custom
|
||||||
|
* repository methods below.
|
||||||
|
*/
|
||||||
|
class UsrListContentRepository extends EntityRepository
|
||||||
|
{
|
||||||
|
}
|
15
lib/Doctrine/Repositories/UsrListOwnerRepository.php
Normal file
15
lib/Doctrine/Repositories/UsrListOwnerRepository.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Repositories;
|
||||||
|
|
||||||
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* UsrListOwnerRepository
|
||||||
|
*
|
||||||
|
* This class was generated by the Doctrine ORM. Add your own custom
|
||||||
|
* repository methods below.
|
||||||
|
*/
|
||||||
|
class UsrListOwnerRepository extends EntityRepository
|
||||||
|
{
|
||||||
|
}
|
15
lib/Doctrine/Repositories/UsrListRepository.php
Normal file
15
lib/Doctrine/Repositories/UsrListRepository.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Repositories;
|
||||||
|
|
||||||
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* UsrListRepository
|
||||||
|
*
|
||||||
|
* This class was generated by the Doctrine ORM. Add your own custom
|
||||||
|
* repository methods below.
|
||||||
|
*/
|
||||||
|
class UsrListRepository extends EntityRepository
|
||||||
|
{
|
||||||
|
}
|
Reference in New Issue
Block a user