forked from wallabag/wallabag
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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")
|
||||
*/
|
||||
|
||||
@ -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")
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user