Fixed mapping entities

There were this error in the console:

> The association Wallabag\CoreBundle\Entity\SiteCredential#user refers to the inverse side field Wallabag\UserBundle\Entity\User#site_credentials which does not exist.
This commit is contained in:
Jeremy Benoist 2017-07-01 09:32:13 +02:00
parent 71e1cbc8eb
commit 9114615adc
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -92,6 +92,13 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
*/
protected $config;
/**
* @var ArrayCollection
*
* @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\SiteCredential", mappedBy="user", cascade={"remove"})
*/
protected $site_credentials;
/**
* @var ArrayCollection
*