Check the ContentType of a ContentReference without loading the object

Check the ContentType of a ContentReference without loading the object

Member since: 2012
 

It would be helpful with a function to see which ContentType a ContentReference points to without actually having to load the entire data object.

We have two different ContentTypes: CategoryNode and BrandNode that both are linked to entries with NodeRelations. Our customer updates the relations through an integration and at that time we need to load the existing relations and determine which one(s) points to a BrandNode. Today we have no better solution than to load all nodes from the database and check the ContentType afterwards. The most annoying part is that we get over thousands of database calls to get assets through ecf_CatalogNode_Asset, which isn't needed at all to update relations. undecided

#192417 May 16, 2018 14:49