]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed mapping entities
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 1 Jul 2017 07:32:13 +0000 (09:32 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 3 Jul 2017 11:40:47 +0000 (13:40 +0200)
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.

src/Wallabag/UserBundle/Entity/User.php

index 20aca29837776bae9fc6ababf1b6000f069fd5d0..a3320bbcaeb14f2471f14e797f578be8917fc482 100644 (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
      *