getOrCreateEntity
Gets an entity with the specified id or creates it and adds it to the collection if it does not exist.
Return
The new or existing object.
Parameters
id
The id of the entity to retrieve or create.
Gets an entity with the specified id or creates it and adds it to the collection if it does not exist.
The new or existing object.
The id of the entity to retrieve or create.