added command to import data from kimai v1 #102 (#103)

This commit is contained in:
Kevin Papst
2018-01-23 00:23:41 +01:00
committed by GitHub
parent 6ae9bc4df5
commit 50b5e93a10
7 changed files with 869 additions and 24 deletions

View File

@@ -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
*/

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;