@@ -48,6 +48,7 @@ class Activity
|
||||
*
|
||||
* @ORM\Column(name="name", type="string", length=255, nullable=false)
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Length(min=2, max=255)
|
||||
*/
|
||||
private $name;
|
||||
|
||||
@@ -73,24 +74,6 @@ class Activity
|
||||
*/
|
||||
private $timesheets;
|
||||
|
||||
/**
|
||||
* @return Timesheet[]
|
||||
*/
|
||||
public function getTimesheets()
|
||||
{
|
||||
return $this->timesheets;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Timesheet[] $timesheets
|
||||
* @return Activity
|
||||
*/
|
||||
public function setTimesheets($timesheets)
|
||||
{
|
||||
$this->timesheets = $timesheets;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Project
|
||||
*/
|
||||
|
||||
@@ -41,14 +41,14 @@ class Customer
|
||||
*
|
||||
* @ORM\Column(name="name", type="string", length=255, nullable=false)
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Length(min=2, max=255)
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="number", type="string", length=50, nullable=false)
|
||||
* @Assert\NotBlank()
|
||||
* @ORM\Column(name="number", type="string", length=50, nullable=true)
|
||||
*/
|
||||
private $number;
|
||||
|
||||
@@ -98,7 +98,7 @@ class Customer
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="country", type="string", length=2, nullable=true)
|
||||
* @ORM\Column(name="country", type="string", length=2, nullable=false)
|
||||
* @Assert\NotBlank()
|
||||
*/
|
||||
private $country;
|
||||
|
||||
@@ -48,6 +48,7 @@ class Project
|
||||
*
|
||||
* @ORM\Column(name="name", type="string", length=255, nullable=false)
|
||||
* @Assert\NotNull()
|
||||
* @Assert\Length(min=2, max=255)
|
||||
*/
|
||||
private $name;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class User implements UserInterface, AdvancedUserInterface
|
||||
*
|
||||
* @ORM\Column(name="name", type="string", length=60, nullable=false, unique=true)
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Length(min=6, max=160)
|
||||
* @Assert\Length(min=5, max=60)
|
||||
*/
|
||||
private $username;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user