Re: [xwiki-users] Some interrogations about reference

2016-11-24 Thread Thomas Mortagne
On Thu, Nov 24, 2016 at 12:09 PM, Pascal BASTIEN wrote: >> > >> > I use this methods, >> hasParent(EntityReference expectedParent) and i noticed that >> I can not use string to set EntityReference. >> > Then i must use this before: "#set >> ($reference = >> $services.model.resolveSpace('xwiki:Ency

Re: [xwiki-users] Some interrogations about reference

2016-11-24 Thread Pascal BASTIEN
> > > > I use this methods, > hasParent(EntityReference expectedParent) and i noticed that > I can not use string to set EntityReference. > > Then i must use this before: "#set > ($reference = > $services.model.resolveSpace('xwiki:Encyclopédie'))" > and "$doc.documentReference.hasParent($reference)

Re: [xwiki-users] Some interrogations about reference

2016-11-24 Thread Thomas Mortagne
On Thu, Nov 24, 2016 at 10:16 AM, Pascal BASTIEN wrote: > Hello xwiki users > > I need a little bit of light about reference. > > I use this methods, hasParent(EntityReference expectedParent) and i noticed > that I can not use string to set EntityReference. > Then i must use this before: "#set ($

[xwiki-users] Some interrogations about reference

2016-11-24 Thread Pascal BASTIEN
Hello xwiki users I need a little bit of light about reference. I use this methods, hasParent(EntityReference expectedParent) and i noticed that I can not use string to set EntityReference. Then i must use this before: "#set ($reference = $services.model.resolveSpace('xwiki:Encyclopédie'))" and