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

@ -9,7 +9,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* Config
*
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\ConfigRepository")
* @ORM\Table(name="config")
* @ORM\Table
* @ORM\Entity
*/
class Config

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;

View File

@ -12,7 +12,7 @@ use Doctrine\Common\Collections\ArrayCollection;
* Tag
*
* @XmlRoot("tag")
* @ORM\Table(name="tag")
* @ORM\Table
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository")
* @ExclusionPolicy("all")
*/

View File

@ -13,8 +13,8 @@ use JMS\Serializer\Annotation\Expose;
/**
* User
*
* @ORM\Table(name="user")
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\UserRepository")
* @ORM\Table
* @ORM\HasLifecycleCallbacks()
* @ExclusionPolicy("all")
*/