You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The difference of q(node).property("reference") vs node.properties.reference causes confusion.
In todays weekly we discussed some potential ways to improve the DX:
Introduce Deprecation Log
This might be a good idea in general but in this specific case we could use it to log usages of q(node).property("<reference-name>").
One alternative would be to throw an exception in this case – but that is rather flaky in Fusion land
Throw exception when trying to access references via properties through PHP API
$node->getProperty("reference") currently returns null but we could also throw an exception that explains how to use FindReferences instead
Deprecated/Remove reference(s) property type in NodeType schema (see below)
NodeType::getProperties would need to split up in NodeType::getReferences
References are no properties with Neos 9.
This is easy to communicate, but it makes "reference properties" even weirder, so we should strive to replace:
The difference of
q(node).property("reference")
vsnode.properties.reference
causes confusion.In todays weekly we discussed some potential ways to improve the DX:
q(node).property("<reference-name>")
.One alternative would be to throw an exception in this case – but that is rather flaky in Fusion land
$node->getProperty("reference")
currently returnsnull
but we could also throw an exception that explains how to useFindReferences
insteadreference(s)
property type in NodeType schema (see below)References are no properties with Neos 9.
This is easy to communicate, but it makes "reference properties" even weirder, so we should strive to replace:
with
The text was updated successfully, but these errors were encountered: