Skip to content

Commit

Permalink
[5-5] BlogArticleエンティティのマッピング定義を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Nov 4, 2015
1 parent a9d8ca8 commit 3db7904
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/lists/ch05/05-05.txt
@@ -0,0 +1,15 @@
/**
* BlogArticle
*
* @ORM\Table(name="blog_article")
* @ORM\Entity(repositoryClass="AppBundle\Entity\BlogArticleRepository")
*/
class BlogArticle
{
...
/**
* @var \DateTime
*
* @ORM\Column(name="target_date", type="date")
*/
private $targetDate;
4 changes: 2 additions & 2 deletions src/AppBundle/Entity/BlogArticle.php
Expand Up @@ -7,7 +7,7 @@
/**
* BlogArticle
*
* @ORM\Table()
* @ORM\Table(name="blog_article")
* @ORM\Entity(repositoryClass="AppBundle\Entity\BlogArticleRepository")
*/
class BlogArticle
Expand All @@ -31,7 +31,7 @@ class BlogArticle
/**
* @var \DateTime
*
* @ORM\Column(name="targetDate", type="date")
* @ORM\Column(name="target_date", type="date")
*/
private $targetDate;

Expand Down

0 comments on commit 3db7904

Please sign in to comment.