{"action":"created","issue":{"url":"https://api.github.com/repos/nelmio/alice/issues/206","labels_url":"https://api.github.com/repos/nelmio/alice/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/nelmio/alice/issues/206/comments","events_url":"https://api.github.com/repos/nelmio/alice/issues/206/events","html_url":"https://github.com/nelmio/alice/issues/206","id":74385055,"number":206,"title":"How to deal with fixtures when have ManyToMany relations","user":{"login":"paquitodev","id":627886,"avatar_url":"https://avatars.githubusercontent.com/u/627886?v=3","gravatar_id":"","url":"https://api.github.com/users/paquitodev","html_url":"https://github.com/paquitodev","followers_url":"https://api.github.com/users/paquitodev/followers","following_url":"https://api.github.com/users/paquitodev/following{/other_user}","gists_url":"https://api.github.com/users/paquitodev/gists{/gist_id}","starred_url":"https://api.github.com/users/paquitodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paquitodev/subscriptions","organizations_url":"https://api.github.com/users/paquitodev/orgs","repos_url":"https://api.github.com/users/paquitodev/repos","events_url":"https://api.github.com/users/paquitodev/events{/privacy}","received_events_url":"https://api.github.com/users/paquitodev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-08T14:41:48Z","updated_at":"2015-08-17T21:13:50Z","closed_at":null,"body":" I have this column in a `Email.php` entity:\r\n\r\n\t   /**\r\n\t     * @ORM\\ManyToMany(targetEntity=\"Media\", inversedBy=\"mediaXrefMail\", cascade={\"persist\", \"remove\"})\r\n\t     * @ORM\\JoinTable(name=\"emails_media_xref\",\r\n\t     *      joinColumns={@ORM\\JoinColumn(name=\"emails_id\", referencedColumnName=\"id\")},\r\n\t     *      inverseJoinColumns={@ORM\\JoinColumn(name=\"media_id\", referencedColumnName=\"id\")}\r\n\t     * )\r\n\t     */\r\n\t    protected $emailsMediaXref;\r\n\r\nHow do I deal with fixtures on this case? It's possible?"},"comment":{"url":"https://api.github.com/repos/nelmio/alice/issues/comments/131962552","html_url":"https://github.com/nelmio/alice/issues/206#issuecomment-131962552","issue_url":"https://api.github.com/repos/nelmio/alice/issues/206","id":131962552,"user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T21:13:50Z","updated_at":"2015-08-17T21:13:50Z","body":"@paquitodev I would go with two fixtures files. If you start putting several entities in a file due to their relations, you'll end up with very big fixtures files very fast."}}