Ability to prefix tables

Will fix #799
This commit is contained in:
Jeremy
2015-03-28 11:29:19 +01:00
committed by Nicolas Lœuillet
parent 1a93ee423b
commit 164bd80118
9 changed files with 92 additions and 8 deletions

View File

@ -13,7 +13,7 @@ use JMS\Serializer\Annotation\XmlRoot;
*
* @XmlRoot("entry")
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\EntryRepository")
* @ORM\Table(name="entry")
* @ORM\Table
* @ORM\HasLifecycleCallbacks()
* @Hateoas\Relation("self", href = "expr('/api/entries/' ~ object.getId())")
*/
@ -121,7 +121,7 @@ class Entry
/**
* @ORM\ManyToMany(targetEntity="Tag", inversedBy="entries", cascade={"persist"})
* @ORM\JoinTable(name="entry_tags")
* @ORM\JoinTable
*/
private $tags;