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
I am trying to filter an array of objects with the Native target. The objects that I am trying to filter contain an array of objects. When I try to filter the array, I get a property access exception:
Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Cannot read property "name" from an array. Maybe you intended to write the property path as "[name]" instead.
Here is a simplified snippet of my objects:
class Label
{
public$name = 'something';
}
class User
{
public$labels;
publicfunction__construct()
{
$this->labels = [
newLabel(),
newLabel(),
newLabel()
];
}
}
Is RulerZ supposed to support this? Perhaps I'm doing something wrong? I could not find an example of this situation. My example works fine with the DoctrineOrm target.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to filter an array of objects with the Native target. The objects that I am trying to filter contain an array of objects. When I try to filter the array, I get a property access exception:
Here is a simplified snippet of my objects:
Here is a snippet of my RulerZ specification:
Here is the filter:
Is RulerZ supposed to support this? Perhaps I'm doing something wrong? I could not find an example of this situation. My example works fine with the DoctrineOrm target.
The text was updated successfully, but these errors were encountered: