Skip to content

[Sofa.Core.BaseData] Add to the binding a method BaseData::setParent from a link path#200

Merged
fredroy merged 1 commit intosofa-framework:masterfrom
CRIStAL-PADR:pr-add-set-parent-data-by-path
Sep 28, 2021
Merged

[Sofa.Core.BaseData] Add to the binding a method BaseData::setParent from a link path#200
fredroy merged 1 commit intosofa-framework:masterfrom
CRIStAL-PADR:pr-add-set-parent-data-by-path

Conversation

@damienmarchal
Copy link
Copy Markdown
Contributor

Currently it is possible to set a parent by calling:

oneData.setParent(otherData) 

With the PR it become possible to do

oneData.setParent("@/myobjcet.data") 

It is questionnable wether we want such behavior or not, but as long as lazy-string link making is allowed in Sofa.core it make sense to have it in the binding.

@fredroy fredroy merged commit 7321b40 into sofa-framework:master Sep 28, 2021
@guparan guparan added this to the v21.12 milestone Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants