Skip to content

Commit

Permalink
[5-1-after] マッピング定義を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Nov 4, 2015
1 parent b981326 commit 00ea09e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions docs/lists/ch05/05-01-after.txt
@@ -0,0 +1,17 @@
/**
* Inquiry
*
* @ORM\Table(name="inquiry")
* @ORM\Entity(repositoryClass="AppBundle\Entity\InquiryRepository")
*/
class Inquiry
{



/**
* @var string
*
* @ORM\Column(name="tel", type="string", length=20, nullable=true)
*/
private $tel;
4 changes: 2 additions & 2 deletions src/AppBundle/Entity/Inquiry.php
Expand Up @@ -7,7 +7,7 @@
/**
* Inquiry
*
* @ORM\Table()
* @ORM\Table(name="inquiry")
* @ORM\Entity(repositoryClass="AppBundle\Entity\InquiryRepository")
*/
class Inquiry
Expand Down Expand Up @@ -38,7 +38,7 @@ class Inquiry
/**
* @var string
*
* @ORM\Column(name="tel", type="string", length=20)
* @ORM\Column(name="tel", type="string", length=20, nullable=true)
*/
private $tel;

Expand Down

0 comments on commit 00ea09e

Please sign in to comment.