Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-141073

Relationship Many to Many is not working with a Native Object

    Details

    • Fix Priority:
      4

      Description

      Summary:
      Relationship Many to Many is not working with a Native Object

      Steps to Reproduce:

      1. Go to Object Admin
      2. Create an Object with a field
      3. Create a Relationship Many to Many with the User Native Object
      4. Create a Layout to include the Relationship tab and set it as default
      5. Publish the Object
      6. Go to the created object and add an entry
      7. Click to view the entry
      8. Click on the Relationship tab
      9. Click to add an entry

      Expected Result:
      There is no error message on Step 8 and entries are displayed on Step 9

      Actual Result:
      Error message is displayed on Step 8 and entries are not displayed on Step 9

      2021-10-19 20:10:28.313 ERROR [http-nio-8080-exec-8][FrontendClayApplication:116] java.lang.IllegalArgumentException: No object related models provider found with key com.liferay.portal.kernel.model.User#manyToMany
      java.lang.IllegalArgumentException: No object related models provider found with key com.liferay.portal.kernel.model.User#manyToMany
      	at com.liferay.object.internal.related.models.ObjectRelatedModelsProviderRegistryImpl.getObjectRelatedModelsProvider(ObjectRelatedModelsProviderRegistryImpl.java:50) ~[?:?]
      	at com.liferay.object.web.internal.object.entries.frontend.taglib.clay.data.set.data.provider.RelatedModelsDataSetDataProvider.getItems(RelatedModelsDataSetDataProvider.java:70) ~[?:?]
      	at com.liferay.frontend.taglib.clay.internal.jaxrs.application.FrontendClayApplication.getClayDataSetData(FrontendClayApplication.java:104) [bundleFile:?]
      ...
      

      Verified on master: 5651d7d71bbff210e87d1c638ddc260b8aacc1a3

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              rodrigo.cunha Rodrigo Cunha
              Participants of an Issue:
              Recent user:
              Rodrigo Cunha
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 6 days ago

                  Packages

                  Version Package