SmartObject Recursion

  • 18 October 2017
  • 1 reply
  • 1 view

Badge +4

If I build SmartObjects for, say, Employee and Department. Within the Employee object I have a relationship to a Department (the department in which the employee works). And the Department object has a sub object for the department head, which is an Employee object.

 

If I load an Employee, the employee's Department sub-object should also get loaded, which then loads another Employee sub-object which is the department head. Whould this cause an infinite loop? Is this dangerous?


1 reply

Badge +15

Hi,


 


From what I understand, SmartObject Associations are used to create references between different SmartObjects. It does not load properties from all associated SmartObjects.


 


Besides, I am not sure if you are allowed to add an association like this. Once you have specified an association between Employee and Department SmartObject, you will see the relationship on both SmartObjects. You should not be able to add the same SmartObject for assciation. 

Reply