Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
4.45k
stars
655
forks
source link
Undefined public property while inherit a Screen class #2879
Closed
DocLM closed 2 months ago
Describe the bug Public properties inherited by a
Screen
class are not filled with their value if a matching item is found in query method results.This potentially break inherited logic from the parent class.
To Reproduce Steps to reproduce the behavior:
Parent
that extends Screen with a public property named$a
;$a
;Child
class that extends Parent and access$a
property.Expected behavior Public properties that have a matching an item from query method should be setted even if they are inherited from the parent class.
Examples Parent.php
Child.php
Accessing
$b
from child class have a defined value while$a
is alwaysnull
.Server: