File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ parameters:
5
5
- Crud\Event\Subject
6
6
ignoreErrors :
7
7
# ORM
8
+ - '#Call to an undefined method Cake\\Datasource\\EntityInterface::getVisible (). #'
8
9
9
10
# Crud properties
10
11
- ' #Access to an undefined property object::\$created #'
Original file line number Diff line number Diff line change @@ -107,7 +107,10 @@ protected function getRepository($entity = null): Table
107
107
protected function entityToShallowArray (EntityInterface $ entity )
108
108
{
109
109
$ result = [];
110
- foreach ($ entity ->visibleProperties () as $ property ) {
110
+ $ properties = method_exists ($ entity , 'getVisible ' )
111
+ ? $ entity ->getVisible ()
112
+ : $ entity ->visibleProperties ();
113
+ foreach ($ properties as $ property ) {
111
114
if ($ property === '_joinData ' ) {
112
115
continue ;
113
116
}
You can’t perform that action at this time.
0 commit comments