Skip to content

Commit

Permalink
[6-8] Inquiryエンティティにプロパティとコンストラクタを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent c9d4d94 commit f540ed5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/lists/ch06/06-08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* @var string
*
* @ORM\Column(name="process_status", type="string", length=20)
* @Assert\NotBlank()
*/
private $processStatus;

/**
* @var string
*
* @ORM\Column(name="process_memo", type="text")
* @Assert\NotBlank()
*/
private $processMemo;

public function __construct()
{
$this->processStatus = 0;
$this->processMemo = '';
}
21 changes: 21 additions & 0 deletions src/AppBundle/Entity/Inquiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,27 @@ class Inquiry
*/
private $content;

/**
* @var string
*
* @ORM\Column(name="process_status", type="string", length=20)
* @Assert\NotBlank()
*/
private $processStatus;

/**
* @var string
*
* @ORM\Column(name="process_memo", type="text")
* @Assert\NotBlank()
*/
private $processMemo;

public function __construct()
{
$this->processStatus = 0;
$this->processMemo = '';
}

/**
* Get id
Expand Down

0 comments on commit f540ed5

Please sign in to comment.