1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Site Entity...
    /**
     * @ManyToMany(targetEntity="Email", mappedBy="sites", cascade={"persist"})
     */
    protected $emails;

// Email entity
    /**
     * @ManyToMany(targetEntity="Site", mappedBy="emails", cascade={"persist"})
     */
    protected $sites;

   /**
     * @OneToMany(targetEntity="IncomingEmail", mappedBy="emails")
     */
    protected $incomingEmails;

// IncomingEmail entity
   /**
     * @ManyToOne(targetEntity="Email", inversedBy="incomingEmails", cascade={"persist"})
     */
    protected $email;