<?php
namespace App\Ox\HoardBundle\Entity;
use NUCLEOS\UserBundle\Model\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="`user`")
* @ORM\Entity
* @ORM\HasLifecycleCallbacks
*/
class User extends BaseUser
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=11, nullable=true)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="first_name", type="string", length=255, nullable=true)
*/
private $firstName;
/**
* @var string
*
* @ORM\Column(name="last_name", type="string", length=255, nullable=true)
*/
private $lastName;
/**
* @var string
*
* @ORM\Column(name="institution", type="string", length=255, nullable=true)
*/
private $institution;
/**
* @var boolean
*
* @ORM\Column(name="administrator", type="boolean", nullable=true)
*/
private $administrator;
/**
* @var boolean
*
* @ORM\Column(name="importer", type="boolean", nullable=true)
*/
private $importer;
/**
* @var boolean
*
* @ORM\Column(name="list_editor", type="boolean", nullable=true)
*/
private $listEditor;
/**
* @var \DateTime
*
* @ORM\Column(name="creation_date", type="datetime", nullable=false)
*/
private $creationDate;
/**
* @var \DateTime
*
* @ORM\Column(name="modified_date", type="datetime", nullable=true)
*/
private $modifiedDate;
/**
* @var string
*
* @ORM\Column(name="comment", type="text", nullable=true)
*/
protected $comment;
/**
* @var boolean
*
* @ORM\Column(name="deleted", type="boolean", nullable=true)
*/
private $deleted;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Hoard", mappedBy="created")
*/
private $hoardsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Hoard", mappedBy="modified")
*/
private $hoardsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\UserHoard", mappedBy="user")
*/
private $accessibleHoards;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\Country")
* @ORM\JoinTable(name="user_country",
* joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="country_id", referencedColumnName="id")})
*/
private $accessibleCountries;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Container", mappedBy="created")
*/
private $containersCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Container", mappedBy="modified")
*/
private $containersLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Reference", mappedBy="created")
*/
private $referencesCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Reference", mappedBy="modified")
*/
private $referencesLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Layer", mappedBy="created")
*/
private $layersCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Layer", mappedBy="modified")
*/
private $layersLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HObject", mappedBy="created")
*/
private $objectsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HObject", mappedBy="modified")
*/
private $objectsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Coin", mappedBy="created")
*/
private $coinsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Coin", mappedBy="modified")
*/
private $coinsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Denomination", mappedBy="created")
*/
private $denominationsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Denomination", mappedBy="modified")
*/
private $denominationsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Period", mappedBy="created")
*/
private $periodsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Period", mappedBy="modified")
*/
private $periodsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Person", mappedBy="created")
*/
private $personsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Person", mappedBy="modified")
*/
private $personsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Reign", mappedBy="created")
*/
private $reignsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Reign", mappedBy="modified")
*/
private $reignsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Mint", mappedBy="created")
*/
private $mintsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Mint", mappedBy="modified")
*/
private $mintsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Report", mappedBy="created")
*/
private $reportsCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Report", mappedBy="modified")
*/
private $reportsLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Status", mappedBy="created")
*/
private $statusCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Status", mappedBy="modified")
*/
private $statusLastModified;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\User", mappedBy="created")
*/
private $usersCreated;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\User", mappedBy="modified")
*/
private $usersLastModified;
/**
* @var \App\Ox\HoardBundle\Entity\User
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\User", inversedBy="usersCreated")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
private $created;
/**
* @var \App\Ox\HoardBundle\Entity\User
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\User", inversedBy="usersLastModified")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="modified_by", referencedColumnName="id")
* })
*/
private $modified;
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->creationDate = new \DateTime();
if ($this->getModifiedDate() == null) {
$this->setModifiedDate(new \DateTime());
}
$this->hoardsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->hoardsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->accessibleHoards = new \Doctrine\Common\Collections\ArrayCollection();
$this->accessibleCountries = new \Doctrine\Common\Collections\ArrayCollection();
$this->containersCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->containersLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->referencesCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->referencesLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->layersCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->layersLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->objectsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->objectsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->coinsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->coinsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->denominationsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->denominationsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->personsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->personsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->reignsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->reignsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->mintsCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->mintsLastModified = new \Doctrine\Common\Collections\ArrayCollection();
$this->usersCreated = new \Doctrine\Common\Collections\ArrayCollection();
$this->usersLastModified = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* @return string
*/
public function __toString():string
{
return $this->title . ' ' . $this->firstName . ' ' . $this->lastName;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set title
*
* @param string $title
* @return User
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set firstName
*
* @param string $firstName
* @return User
*/
public function setFirstName($firstName)
{
$this->firstName = $firstName;
return $this;
}
/**
* Get firstName
*
* @return string
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set lastName
*
* @param string $lastName
* @return User
*/
public function setLastName($lastName)
{
$this->lastName = $lastName;
return $this;
}
/**
* Get lastName
*
* @return string
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set institution
*
* @param string $institution
* @return User
*/
public function setInstitution($institution)
{
$this->institution = $institution;
return $this;
}
/**
* Get institution
*
* @return string
*/
public function getInstitution()
{
return $this->institution;
}
/**
* Set administrator
*
* @param boolean $administrator
* @return User
*/
public function setAdministrator($administrator)
{
$this->administrator = $administrator;
return $this;
}
/**
* Get administrator
*
* @return boolean
*/
public function getAdministrator()
{
return $this->administrator;
}
/**
* Set importer
*
* @param boolean $importer
* @return User
*/
public function setImporter($importer)
{
$this->importer = $importer;
return $this;
}
/**
* Get importer
*
* @return boolean
*/
public function getImporter()
{
return $this->importer;
}
/**
* Set listEditor
*
* @param boolean $listEditor
* @return User
*/
public function setListEditor($listEditor)
{
$this->listEditor = $listEditor;
return $this;
}
/**
* Get listEditor
*
* @return boolean
*/
public function getListEditor()
{
return $this->listEditor;
}
/**
* Set creationDate
*
* @param \DateTime $creationDate
* @return User
*/
public function setCreationDate($creationDate)
{
$this->creationDate = $creationDate;
return $this;
}
/**
* Get creationDate
*
* @return \DateTime
*/
public function getCreationDate()
{
return $this->creationDate;
}
/**
* Set modifiedDate
*
* @param \DateTime $modifiedDate
* @return User
*/
public function setModifiedDate($modifiedDate)
{
$this->modifiedDate = $modifiedDate;
return $this;
}
/**
* Get modifiedDate
*
* @return \DateTime
*/
public function getModifiedDate()
{
return $this->modifiedDate;
}
/**
* Set comment
*
* @param string $comment
*
*/
public function setComment($comment)
{
$this->comment = $comment;
return $this;
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Set deleted
*
* @param boolean $deleted
* @return User
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
return $this;
}
/**
* Get deleted
*
* @return boolean
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Add hoardsCreated
*
* @param \App\Ox\HoardBundle\Entity\Hoard $hoardsCreated
* @return User
*/
public function addHoardsCreated(Hoard $hoardsCreated)
{
$this->hoardsCreated[] = $hoardsCreated;
return $this;
}
/**
* Remove hoardsCreated
*
* @param \App\Ox\HoardBundle\Entity\Hoard $hoardsCreated
*/
public function removeHoardsCreated(Hoard $hoardsCreated)
{
$this->hoardsCreated->removeElement($hoardsCreated);
}
/**
* Get hoardsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getHoardsCreated()
{
return $this->hoardsCreated;
}
/**
* Add hoardsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Hoard $hoardsLastModified
* @return User
*/
public function addHoardsLastModified(Hoard $hoardsLastModified)
{
$this->hoardsLastModified[] = $hoardsLastModified;
return $this;
}
/**
* Remove hoardsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Hoard $hoardsLastModified
*/
public function removeHoardsLastModified(Hoard $hoardsLastModified)
{
$this->hoardsLastModified->removeElement($hoardsLastModified);
}
/**
* Get hoardsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getHoardsLastModified()
{
return $this->hoardsLastModified;
}
/**
* Add accessibleHoards
*
* @param \App\Ox\HoardBundle\Entity\UserHoard $accessibleHoards
* @return User
*/
public function addAccessibleHoard(UserHoard $accessibleHoards)
{
$this->accessibleHoards[] = $accessibleHoards;
return $this;
}
/**
* Remove accessibleHoards
*
* @param \App\Ox\HoardBundle\Entity\UserHoard $accessibleHoards
*/
public function removeAccessibleHoard(UserHoard $accessibleHoards)
{
$this->accessibleHoards->removeElement($accessibleHoards);
}
/**
* Get accessibleHoards
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAccessibleHoards()
{
return $this->accessibleHoards;
}
/**
* Add accessibleCountries
*
* @param \App\Ox\HoardBundle\Entity\Country $accessibleCountries
* @return User
*/
public function addAccessibleCountry(Country $accessibleCountries)
{
$this->accessibleCountries[] = $accessibleCountries;
return $this;
}
/**
* Remove accessibleCountries
*
* @param \App\Ox\HoardBundle\Entity\Country $accessibleCountries
*/
public function removeAccessibleCountry(Country $accessibleCountries)
{
$this->accessibleCountries->removeElement($accessibleCountries);
}
/**
* Get accessibleCountries
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAccessibleCountries()
{
return $this->accessibleCountries;
}
/**
* Add containersCreated
*
* @param \App\Ox\HoardBundle\Entity\Container $containersCreated
* @return User
*/
public function addContainersCreated(Container $containersCreated)
{
$this->containersCreated[] = $containersCreated;
return $this;
}
/**
* Remove containersCreated
*
* @param \App\Ox\HoardBundle\Entity\Container $containersCreated
*/
public function removeContainersCreated(Container $containersCreated)
{
$this->containersCreated->removeElement($containersCreated);
}
/**
* Get containersCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContainersCreated()
{
return $this->containersCreated;
}
/**
* Add containersLastModified
*
* @param \App\Ox\HoardBundle\Entity\Container $containersLastModified
* @return User
*/
public function addContainersLastModified(Container $containersLastModified)
{
$this->containersLastModified[] = $containersLastModified;
return $this;
}
/**
* Remove containersLastModified
*
* @param \App\Ox\HoardBundle\Entity\Container $containersLastModified
*/
public function removeContainersLastModified(Container $containersLastModified)
{
$this->containersLastModified->removeElement($containersLastModified);
}
/**
* Get containersLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContainersLastModified()
{
return $this->containersLastModified;
}
/**
* Add referencesCreated
*
* @param \App\Ox\HoardBundle\Entity\Reference $referencesCreated
* @return User
*/
public function addReferencesCreated(Reference $referencesCreated)
{
$this->referencesCreated[] = $referencesCreated;
return $this;
}
/**
* Remove referencesCreated
*
* @param \App\Ox\HoardBundle\Entity\Reference $referencesCreated
*/
public function removeReferencesCreated(Reference $referencesCreated)
{
$this->referencesCreated->removeElement($referencesCreated);
}
/**
* Get referencesCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getReferencesCreated()
{
return $this->referencesCreated;
}
/**
* Add referencesLastModified
*
* @param \App\Ox\HoardBundle\Entity\Reference $referencesLastModified
* @return User
*/
public function addReferencesLastModified(Reference $referencesLastModified)
{
$this->referencesLastModified[] = $referencesLastModified;
return $this;
}
/**
* Remove referencesLastModified
*
* @param \App\Ox\HoardBundle\Entity\Reference $referencesLastModified
*/
public function removeReferencesLastModified(Reference $referencesLastModified)
{
$this->referencesLastModified->removeElement($referencesLastModified);
}
/**
* Get referencesLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getReferencesLastModified()
{
return $this->referencesLastModified;
}
/**
* Add layersCreated
*
* @param \App\Ox\HoardBundle\Entity\Layer $layersCreated
* @return User
*/
public function addLayersCreated(Layer $layersCreated)
{
$this->layersCreated[] = $layersCreated;
return $this;
}
/**
* Remove layersCreated
*
* @param \App\Ox\HoardBundle\Entity\Layer $layersCreated
*/
public function removeLayersCreated(Layer $layersCreated)
{
$this->layersCreated->removeElement($layersCreated);
}
/**
* Get layersCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getLayersCreated()
{
return $this->layersCreated;
}
/**
* Add layersLastModified
*
* @param \App\Ox\HoardBundle\Entity\Layer $layersLastModified
* @return User
*/
public function addLayersLastModified(Layer $layersLastModified)
{
$this->layersLastModified[] = $layersLastModified;
return $this;
}
/**
* Remove layersLastModified
*
* @param \App\Ox\HoardBundle\Entity\Layer $layersLastModified
*/
public function removeLayersLastModified(Layer $layersLastModified)
{
$this->layersLastModified->removeElement($layersLastModified);
}
/**
* Get layersLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getLayersLastModified()
{
return $this->layersLastModified;
}
/**
* Add objectsCreated
*
* @param \App\Ox\HoardBundle\Entity\HObject $objectsCreated
* @return User
*/
public function addObjectsCreated(HObject $objectsCreated)
{
$this->objectsCreated[] = $objectsCreated;
return $this;
}
/**
* Remove objectsCreated
*
* @param \App\Ox\HoardBundle\Entity\HObject $objectsCreated
*/
public function removeObjectsCreated(HObject $objectsCreated)
{
$this->objectsCreated->removeElement($objectsCreated);
}
/**
* Get objectsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getObjectsCreated()
{
return $this->objectsCreated;
}
/**
* Add objectsLastModified
*
* @param \App\Ox\HoardBundle\Entity\HObject $objectsLastModified
* @return User
*/
public function addObjectsLastModified(HObject $objectsLastModified)
{
$this->objectsLastModified[] = $objectsLastModified;
return $this;
}
/**
* Remove objectsLastModified
*
* @param \App\Ox\HoardBundle\Entity\HObject $objectsLastModified
*/
public function removeObjectsLastModified(HObject $objectsLastModified)
{
$this->objectsLastModified->removeElement($objectsLastModified);
}
/**
* Get objectsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getObjectsLastModified()
{
return $this->objectsLastModified;
}
/**
* Add coinsCreated
*
* @param \App\Ox\HoardBundle\Entity\Coin $coinsCreated
* @return User
*/
public function addCoinsCreated(Coin $coinsCreated)
{
$this->coinsCreated[] = $coinsCreated;
return $this;
}
/**
* Remove coinsCreated
*
* @param \App\Ox\HoardBundle\Entity\Coin $coinsCreated
*/
public function removeCoinsCreated(Coin $coinsCreated)
{
$this->coinsCreated->removeElement($coinsCreated);
}
/**
* Get coinsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCoinsCreated()
{
return $this->coinsCreated;
}
/**
* Add coinsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Coin $coinsLastModified
* @return User
*/
public function addCoinsLastModified(Coin $coinsLastModified)
{
$this->coinsLastModified[] = $coinsLastModified;
return $this;
}
/**
* Remove coinsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Coin $coinsLastModified
*/
public function removeCoinsLastModified(Coin $coinsLastModified)
{
$this->coinsLastModified->removeElement($coinsLastModified);
}
/**
* Get coinsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCoinsLastModified()
{
return $this->coinsLastModified;
}
/**
* Add denominationsCreated
*
* @param \App\Ox\HoardBundle\Entity\Denomination $denominationsCreated
* @return User
*/
public function addDenominationsCreated(Denomination $denominationsCreated)
{
$this->denominationsCreated[] = $denominationsCreated;
return $this;
}
/**
* Remove denominationsCreated
*
* @param \App\Ox\HoardBundle\Entity\Denomination $denominationsCreated
*/
public function removeDenominationsCreated(Denomination $denominationsCreated)
{
$this->denominationsCreated->removeElement($denominationsCreated);
}
/**
* Get denominationsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDenominationsCreated()
{
return $this->denominationsCreated;
}
/**
* Add denominationsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Denomination $denominationsLastModified
* @return User
*/
public function addDenominationsLastModified(Denomination $denominationsLastModified)
{
$this->denominationsLastModified[] = $denominationsLastModified;
return $this;
}
/**
* Remove denominationsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Denomination $denominationsLastModified
*/
public function removeDenominationsLastModified(Denomination $denominationsLastModified)
{
$this->denominationsLastModified->removeElement($denominationsLastModified);
}
/**
* Get denominationsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDenominationsLastModified()
{
return $this->denominationsLastModified;
}
/**
* Add personsCreated
*
* @param \App\Ox\HoardBundle\Entity\Person $personsCreated
* @return User
*/
public function addPersonsCreated(Person $personsCreated)
{
$this->personsCreated[] = $personsCreated;
return $this;
}
/**
* Remove personsCreated
*
* @param \App\Ox\HoardBundle\Entity\Person $personsCreated
*/
public function removePersonsCreated(Person $personsCreated)
{
$this->personsCreated->removeElement($personsCreated);
}
/**
* Get personsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPersonsCreated()
{
return $this->personsCreated;
}
/**
* Add personsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Person $personsLastModified
* @return User
*/
public function addPersonsLastModified(Person $personsLastModified)
{
$this->personsLastModified[] = $personsLastModified;
return $this;
}
/**
* Remove personsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Person $personsLastModified
*/
public function removePersonsLastModified(Person $personsLastModified)
{
$this->personsLastModified->removeElement($personsLastModified);
}
/**
* Get personsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPersonsLastModified()
{
return $this->personsLastModified;
}
/**
* Add reignsCreated
*
* @param \App\Ox\HoardBundle\Entity\Reign $reignsCreated
* @return User
*/
public function addReignsCreated(Reign $reignsCreated)
{
$this->reignsCreated[] = $reignsCreated;
return $this;
}
/**
* Remove reignsCreated
*
* @param \App\Ox\HoardBundle\Entity\Reign $reignsCreated
*/
public function removeReignsCreated(Reign $reignsCreated)
{
$this->reignsCreated->removeElement($reignsCreated);
}
/**
* Get reignsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getReignsCreated()
{
return $this->reignsCreated;
}
/**
* Add reignsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Reign $reignsLastModified
* @return User
*/
public function addReignsLastModified(Reign $reignsLastModified)
{
$this->reignsLastModified[] = $reignsLastModified;
return $this;
}
/**
* Remove reignsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Reign $reignsLastModified
*/
public function removeReignsLastModified(Reign $reignsLastModified)
{
$this->reignsLastModified->removeElement($reignsLastModified);
}
/**
* Get reignsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getReignsLastModified()
{
return $this->reignsLastModified;
}
/**
* Add mintsCreated
*
* @param \App\Ox\HoardBundle\Entity\Mint $mintsCreated
* @return User
*/
public function addMintsCreated(Mint $mintsCreated)
{
$this->mintsCreated[] = $mintsCreated;
return $this;
}
/**
* Remove mintsCreated
*
* @param \App\Ox\HoardBundle\Entity\Mint $mintsCreated
*/
public function removeMintsCreated(Mint $mintsCreated)
{
$this->mintsCreated->removeElement($mintsCreated);
}
/**
* Get mintsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMintsCreated()
{
return $this->mintsCreated;
}
/**
* Add mintsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Mint $mintsLastModified
* @return User
*/
public function addMintsLastModified(Mint $mintsLastModified)
{
$this->mintsLastModified[] = $mintsLastModified;
return $this;
}
/**
* Remove mintsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Mint $mintsLastModified
*/
public function removeMintsLastModified(Mint $mintsLastModified)
{
$this->mintsLastModified->removeElement($mintsLastModified);
}
/**
* Get mintsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMintsLastModified()
{
return $this->mintsLastModified;
}
/**
* Add reportsCreated
*
* @param \App\Ox\HoardBundle\Entity\Report $reportsCreated
* @return Report
*/
public function addReportsCreated(Report $reportsCreated)
{
$this->reportsCreated[] = $reportsCreated;
return $this;
}
/**
* Remove reportsCreated
*
* @param \App\Ox\HoardBundle\Entity\Report $reportsCreated
*/
public function removeReportsCreated(Report $reportsCreated)
{
$this->reportsCreated->removeElement($reportsCreated);
}
/**
* Get reportsCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getReportsCreated()
{
return $this->reportsCreated;
}
/**
* Add reportsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Report $reportsLastModified
* @return Report
*/
public function addReportsLastModified(Report $reportsLastModified)
{
$this->reportsLastModified[] = $reportsLastModified;
return $this;
}
/**
* Remove reportsLastModified
*
* @param \App\Ox\HoardBundle\Entity\Report $reportsLastModified
*/
public function removeReportsLastModified(Report $reportsLastModified)
{
$this->reportsLastModified->removeElement($reportsLastModified);
}
/**
* Get reportsLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getReportsLastModified()
{
return $this->reportsLastModified;
}
/**
* Add statusCreated
*
* @param \App\Ox\HoardBundle\Entity\Status $statusCreated
* @return Status
*/
public function addStatusCreated(Status $statusCreated)
{
$this->statusCreated[] = $statusCreated;
return $this;
}
/**
* Remove statusCreated
*
* @param \App\Ox\HoardBundle\Entity\Status $statusCreated
*/
public function removeStatusCreated(Status $statusCreated)
{
$this->statusCreated->removeElement($statusCreated);
}
/**
* Get statusCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getStatusCreated()
{
return $this->statusCreated;
}
/**
* Add statusLastModified
*
* @param \App\Ox\HoardBundle\Entity\Status $statusLastModified
* @return Status
*/
public function addStatusLastModified(Status $statusLastModified)
{
$this->statusLastModified[] = $statusLastModified;
return $this;
}
/**
* Remove statusLastModified
*
* @param \App\Ox\HoardBundle\Entity\Status $statusLastModified
*/
public function removeStatusLastModified(Status $statusLastModified)
{
$this->statusLastModified->removeElement($statusLastModified);
}
/**
* Get statusLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getStatusLastModified()
{
return $this->statusLastModified;
}
/**
* Add usersCreated
*
* @param \App\Ox\HoardBundle\Entity\User $usersCreated
* @return User
*/
public function addUsersCreated(User $usersCreated)
{
$this->usersCreated[] = $usersCreated;
return $this;
}
/**
* Remove usersCreated
*
* @param \App\Ox\HoardBundle\Entity\User $usersCreated
*/
public function removeUsersCreated(User $usersCreated)
{
$this->usersCreated->removeElement($usersCreated);
}
/**
* Get usersCreated
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getUsersCreated()
{
return $this->usersCreated;
}
/**
* Add usersLastModified
*
* @param \App\Ox\HoardBundle\Entity\User $usersLastModified
* @return User
*/
public function addUsersLastModified(User $usersLastModified)
{
$this->usersLastModified[] = $usersLastModified;
return $this;
}
/**
* Remove usersLastModified
*
* @param \App\Ox\HoardBundle\Entity\User $usersLastModified
*/
public function removeUsersLastModified(User $usersLastModified)
{
$this->usersLastModified->removeElement($usersLastModified);
}
/**
* Get usersLastModified
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getUsersLastModified()
{
return $this->usersLastModified;
}
/**
* Set created
*
* @param \App\Ox\HoardBundle\Entity\User $created
* @return User
*/
public function setCreated(User $created = null)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \App\Ox\HoardBundle\Entity\User
*/
public function getCreated()
{
return $this->created;
}
/**
* Set modified
*
* @param \App\Ox\HoardBundle\Entity\User $modified
* @return User
*/
public function setModified(User $modified = null)
{
$this->modified = $modified;
return $this;
}
/**
* Get modified
*
* @return \App\Ox\HoardBundle\Entity\User
*/
public function getModified()
{
return $this->modified;
}
/**
* @ORM\PrePersist()
* @ORM\PreUpdate()
*/
public function updateModifiedDate() {
// update the modified time
$this->setModifiedDate(new \DateTime());
}
}