<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 17:05:18 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-2074/DDC-2074.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DDC-2074] ManyToManyPersister not found in the chain configured namespaces</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2074</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The error is: &quot;The class &apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos; was not found in the chain configured namespaces&quot;&lt;/p&gt;

&lt;p&gt;Replicate by making an entity which has a property which is self referencing; e.g. &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/association-mapping.html#many-to-many-self-referencing&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/association-mapping.html#many-to-many-self-referencing&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;For example an Album could be related to any other similar albums. An album entity would have a property &apos;relatedAlbums&apos; which is an ArrayCollection. Similarly, I could be working on a CMS where any piece of content could be related to any other in order to show a &quot;related content&quot; or &quot;related posts&quot; style list on a web page.&lt;/p&gt;

&lt;p&gt;Using Symfony 2.1 and a Symfony Form with FormBuilder make sure to use the &apos;by_reference&apos; =&amp;gt; false to call the setter for the property. In the setter for the property: &lt;a href=&quot;https://gist.github.com/3879169&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3879169&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A similar question has been asked on StackOverflow: &lt;a href=&quot;http://stackoverflow.com/questions/12077084/doctrine2-manytomany-self-referencing&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/12077084/doctrine2-manytomany-self-referencing&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Symfony 2.1</environment>
            <key id="14124">DDC-2074</key>
            <summary>ManyToManyPersister not found in the chain configured namespaces</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bendihossan">Steffan Harries</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Oct 2012 13:08:51 +0000</created>
                <updated>Sun, 25 Nov 2012 20:10:52 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 20:10:52 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="18831" author="beberlei" created="Fri, 12 Oct 2012 17:58:22 +0000"  >&lt;p&gt;I need a stacktrace for this error, i have no clue why this happens and where.&lt;/p&gt;</comment>
                    <comment id="18836" author="bendihossan" created="Mon, 15 Oct 2012 08:22:14 +0000"  >&lt;p&gt;Stack Trace:&lt;/p&gt;

&lt;p&gt;The class &apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos; was not found in the chain configured namespaces Gedmo\Tree\Entity, Gedmo\Translatable\Entity, MyProject\Bundle\AdminBundle\Entity, MyProject\Bundle\Common\SiteBundle\Entity, MyProject\Bundle\Common\ContentBundle\Entity, FOS\UserBundle\Entity&lt;/p&gt;

&lt;p&gt;500 Internal Server Error - MappingException&lt;/p&gt;

&lt;p&gt;Stack Trace&lt;/p&gt;

&lt;p&gt;in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php at line 38   &lt;br/&gt;
     */&lt;br/&gt;
    public static function classNotFoundInNamespaces($className, $namespaces)&lt;/p&gt;
    {
        return new self(&quot;The class &apos;&quot; . $className . &quot;&apos; was not found in the &quot;.
            &quot;chain configured namespaces &quot; . implode(&quot;, &quot;, $namespaces));
    }
&lt;p&gt;at MappingException ::classNotFoundInNamespaces (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;, array(&apos;Gedmo\Tree\Entity&apos;, &apos;Gedmo\Translatable\Entity&apos;, &apos;MyProject\Bundle\AdminBundle\Entity&apos;, &apos;MyProject\Bundle\Common\SiteBundle\Entity&apos;, &apos;MyProject\Bundle\Common\ContentBundle\Entity&apos;, &apos;FOS\UserBundle\Entity&apos;)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php at line 114   &lt;br/&gt;
at MappingDriverChain -&amp;gt;loadMetadataForClass (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;, object(ClassMetadata)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php at line 112   &lt;br/&gt;
at ClassMetadataFactory -&amp;gt;doLoadMetadata (object(ClassMetadata), null, false, array()) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php at line 302   &lt;br/&gt;
at AbstractClassMetadataFactory -&amp;gt;loadMetadata (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php at line 205   &lt;br/&gt;
at AbstractClassMetadataFactory -&amp;gt;getMetadataFor (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 268   &lt;br/&gt;
at EntityManager -&amp;gt;getClassMetadata (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php at line 169   &lt;br/&gt;
at ManyToManyPersister -&amp;gt;_getDeleteSQL (object(PersistentCollection)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 89   &lt;br/&gt;
at AbstractCollectionPersister -&amp;gt;delete (object(PersistentCollection)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 328   &lt;br/&gt;
at UnitOfWork -&amp;gt;commit (null) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 355   &lt;br/&gt;
at EntityManager -&amp;gt;flush (null) &lt;br/&gt;
in kernel.root_dir/cache/dev/jms_diextra/doctrine/EntityManager_5075974d574d6.php at line 362   &lt;br/&gt;
at EntityManager -&amp;gt;flush () &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/src/MyProjectBundle/Common/ContentBundle/Controller/ContentController.php at line 170   &lt;br/&gt;
at ContentController -&amp;gt;updateAction (object(Request), &apos;3&apos;)&lt;br/&gt;
at call_user_func_array (array(object(ContentController), &apos;updateAction&apos;), array(object(Request), &apos;3&apos;)) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 1421   &lt;br/&gt;
at HttpKernel -&amp;gt;handleRaw (object(Request), &apos;1&apos;) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 1385   &lt;br/&gt;
at HttpKernel -&amp;gt;handle (object(Request), &apos;1&apos;, true) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 1561   &lt;br/&gt;
at HttpKernel -&amp;gt;handle (object(Request), &apos;1&apos;, true) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 612   &lt;br/&gt;
at Kernel -&amp;gt;handle (object(Request)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/web/app_dev.php at line 28  &lt;/p&gt;</comment>
                    <comment id="19061" author="beberlei" created="Sun, 25 Nov 2012 20:10:52 +0000"  >&lt;p&gt;Ok apparently this is fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>