mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Update entities and repositories to Doctrine 2.3 format
This commit is contained in:
@@ -423,4 +423,27 @@ class Basket
|
||||
|
||||
return $totSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add elements
|
||||
*
|
||||
* @param \Entities\BasketElement $elements
|
||||
* @return Basket
|
||||
*/
|
||||
public function addElement(\Entities\BasketElement $elements)
|
||||
{
|
||||
$this->elements[] = $elements;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove elements
|
||||
*
|
||||
* @param \Entities\BasketElement $elements
|
||||
*/
|
||||
public function removeElement(\Entities\BasketElement $elements)
|
||||
{
|
||||
$this->elements->removeElement($elements);
|
||||
}
|
||||
}
|
@@ -246,4 +246,14 @@ class BasketElement
|
||||
|
||||
throw new \Exception('There is no such participant ' . $user->get_email());
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove validation_datas
|
||||
*
|
||||
* @param \Entities\ValidationData $validationDatas
|
||||
*/
|
||||
public function removeValidationData(\Entities\ValidationData $validationDatas)
|
||||
{
|
||||
$this->validation_datas->removeElement($validationDatas);
|
||||
}
|
||||
}
|
@@ -401,4 +401,50 @@ class LazaretFile
|
||||
{
|
||||
return $this->thumbFilename;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add attributes
|
||||
*
|
||||
* @param \Entities\LazaretAttribute $attributes
|
||||
* @return LazaretFile
|
||||
*/
|
||||
public function addAttribute(\Entities\LazaretAttribute $attributes)
|
||||
{
|
||||
$this->attributes[] = $attributes;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove attributes
|
||||
*
|
||||
* @param \Entities\LazaretAttribute $attributes
|
||||
*/
|
||||
public function removeAttribute(\Entities\LazaretAttribute $attributes)
|
||||
{
|
||||
$this->attributes->removeElement($attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add checks
|
||||
*
|
||||
* @param \Entities\LazaretCheck $checks
|
||||
* @return LazaretFile
|
||||
*/
|
||||
public function addCheck(\Entities\LazaretCheck $checks)
|
||||
{
|
||||
$this->checks[] = $checks;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove checks
|
||||
*
|
||||
* @param \Entities\LazaretCheck $checks
|
||||
*/
|
||||
public function removeCheck(\Entities\LazaretCheck $checks)
|
||||
{
|
||||
$this->checks->removeElement($checks);
|
||||
}
|
||||
}
|
@@ -171,4 +171,27 @@ class LazaretSession
|
||||
{
|
||||
return $this->usr_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add files
|
||||
*
|
||||
* @param \Entities\LazaretFile $files
|
||||
* @return LazaretSession
|
||||
*/
|
||||
public function addFile(\Entities\LazaretFile $files)
|
||||
{
|
||||
$this->files[] = $files;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove files
|
||||
*
|
||||
* @param \Entities\LazaretFile $files
|
||||
*/
|
||||
public function removeFile(\Entities\LazaretFile $files)
|
||||
{
|
||||
$this->files->removeElement($files);
|
||||
}
|
||||
}
|
@@ -419,4 +419,27 @@ class Session
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add modules
|
||||
*
|
||||
* @param \Entities\SessionModule $modules
|
||||
* @return Session
|
||||
*/
|
||||
public function addModule(\Entities\SessionModule $modules)
|
||||
{
|
||||
$this->modules[] = $modules;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove modules
|
||||
*
|
||||
* @param \Entities\SessionModule $modules
|
||||
*/
|
||||
public function removeModule(\Entities\SessionModule $modules)
|
||||
{
|
||||
$this->modules->removeElement($modules);
|
||||
}
|
||||
}
|
@@ -207,4 +207,50 @@ class UsrList
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add owners
|
||||
*
|
||||
* @param \Entities\UsrListOwner $owners
|
||||
* @return UsrList
|
||||
*/
|
||||
public function addOwner(\Entities\UsrListOwner $owners)
|
||||
{
|
||||
$this->owners[] = $owners;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove owners
|
||||
*
|
||||
* @param \Entities\UsrListOwner $owners
|
||||
*/
|
||||
public function removeOwner(\Entities\UsrListOwner $owners)
|
||||
{
|
||||
$this->owners->removeElement($owners);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add entries
|
||||
*
|
||||
* @param \Entities\UsrListEntry $entries
|
||||
* @return UsrList
|
||||
*/
|
||||
public function addEntrie(\Entities\UsrListEntry $entries)
|
||||
{
|
||||
$this->entries[] = $entries;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove entries
|
||||
*
|
||||
* @param \Entities\UsrListEntry $entries
|
||||
*/
|
||||
public function removeEntrie(\Entities\UsrListEntry $entries)
|
||||
{
|
||||
$this->entries->removeElement($entries);
|
||||
}
|
||||
}
|
@@ -273,4 +273,27 @@ class ValidationParticipant
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add datas
|
||||
*
|
||||
* @param \Entities\ValidationData $datas
|
||||
* @return ValidationParticipant
|
||||
*/
|
||||
public function addData(\Entities\ValidationData $datas)
|
||||
{
|
||||
$this->datas[] = $datas;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove datas
|
||||
*
|
||||
* @param \Entities\ValidationData $datas
|
||||
*/
|
||||
public function removeData(\Entities\ValidationData $datas)
|
||||
{
|
||||
$this->datas->removeElement($datas);
|
||||
}
|
||||
}
|
@@ -370,4 +370,27 @@ class ValidationSession
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add participants
|
||||
*
|
||||
* @param \Entities\ValidationParticipant $participants
|
||||
* @return ValidationSession
|
||||
*/
|
||||
public function addParticipant(\Entities\ValidationParticipant $participants)
|
||||
{
|
||||
$this->participants[] = $participants;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove participants
|
||||
*
|
||||
* @param \Entities\ValidationParticipant $participants
|
||||
*/
|
||||
public function removeParticipant(\Entities\ValidationParticipant $participants)
|
||||
{
|
||||
$this->participants->removeElement($participants);
|
||||
}
|
||||
}
|
@@ -213,6 +213,18 @@ class Basket extends \Entities\Basket implements \Doctrine\ORM\Proxy\Proxy
|
||||
return parent::getSize($app);
|
||||
}
|
||||
|
||||
public function addElement(\Entities\BasketElement $elements)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::addElement($elements);
|
||||
}
|
||||
|
||||
public function removeElement(\Entities\BasketElement $elements)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::removeElement($elements);
|
||||
}
|
||||
|
||||
|
||||
public function __sleep()
|
||||
{
|
||||
|
@@ -111,6 +111,18 @@ class LazaretSession extends \Entities\LazaretSession implements \Doctrine\ORM\P
|
||||
return parent::getUsrId();
|
||||
}
|
||||
|
||||
public function addFile(\Entities\LazaretFile $files)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::addFile($files);
|
||||
}
|
||||
|
||||
public function removeFile(\Entities\LazaretFile $files)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::removeFile($files);
|
||||
}
|
||||
|
||||
|
||||
public function __sleep()
|
||||
{
|
||||
|
@@ -129,6 +129,30 @@ class UsrList extends \Entities\UsrList implements \Doctrine\ORM\Proxy\Proxy
|
||||
return parent::has($user, $app);
|
||||
}
|
||||
|
||||
public function addOwner(\Entities\UsrListOwner $owners)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::addOwner($owners);
|
||||
}
|
||||
|
||||
public function removeOwner(\Entities\UsrListOwner $owners)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::removeOwner($owners);
|
||||
}
|
||||
|
||||
public function addEntrie(\Entities\UsrListEntry $entries)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::addEntrie($entries);
|
||||
}
|
||||
|
||||
public function removeEntrie(\Entities\UsrListEntry $entries)
|
||||
{
|
||||
$this->__load();
|
||||
return parent::removeEntrie($entries);
|
||||
}
|
||||
|
||||
|
||||
public function __sleep()
|
||||
{
|
||||
|
Reference in New Issue
Block a user