Quoted entity to avoid reserved keyword

Should fix #1498
This commit is contained in:
Jeremy Benoist
2015-10-24 15:28:02 +02:00
parent 54a2241e13
commit bd0f3d32c9
8 changed files with 55 additions and 90 deletions

View File

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

View File

@ -14,7 +14,7 @@ use Wallabag\UserBundle\Entity\User;
*
* @XmlRoot("entry")
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\EntryRepository")
* @ORM\Table
* @ORM\Table(name="`entry`")
* @ORM\HasLifecycleCallbacks()
* @Hateoas\Relation("self", href = "expr('/api/entries/' ~ object.getId())")
*/

View File

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