mirror of
https://github.com/wallabag/wallabag.git
synced 2025-03-06 11:21:03 +00:00
Merge pull request #3257 from wallabag/fix-mapping-entities
Fixed mapping entities
This commit is contained in:
commit
896f981ff5
2 changed files with 8 additions and 1 deletions
|
@ -57,7 +57,7 @@ class SiteCredential
|
||||||
private $createdAt;
|
private $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="site_credentials")
|
* @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="siteCredentials")
|
||||||
*/
|
*/
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,13 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
|
||||||
*/
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\SiteCredential", mappedBy="user", cascade={"remove"})
|
||||||
|
*/
|
||||||
|
protected $siteCredentials;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ArrayCollection
|
* @var ArrayCollection
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue