> On 17 May 2017, at 16:27, Cyril Ferlicot D. <cyril.ferli...@gmail.com> wrote:
> 
> On 17/05/2017 16:25, Sven Van Caekenberghe wrote:
>> 
>> 
>> OK.
>> 
>> So there is some existing method that gives you the entity given its name ?
>> 
>>  MooseEntity class>>fromEntityName: 'mooseEntityName'
>> 
>> Right ?
>> 
>> So why can't you use the example that I gave you earlier, replace the UUID 
>> string with the mooseEntityName string, and call the above method instead of 
>> the #fromId: in my example ? 
>> 
>> In STON, you will then see 
>> 
>>  MooseEntity['mooseEntityName']
>> 
>> as value.
>> 
> 
> But it would not export/import all the other variables no?

You change the representation of MooseEntity to the above short form, then you 
just use MooseEntity instances inside other objects. All other instance 
variables of MooseEntity will be skipped.

Just like Date, Time, or DateAndTime have short representations, that you see 
when you include these as values inside other objects.

We must be talking about something different because I really don't see the 
problem.

>> 
>> 
> 
> 
> -- 
> Cyril Ferlicot
> https://ferlicot.fr
> 
> http://www.synectique.eu
> 2 rue Jacques Prévert 01,
> 59650 Villeneuve d'ascq France
> 


Reply via email to