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 15
15
use Cake \Utility \Hash ;
16
16
use Cake \Utility \Inflector ;
17
17
use CrudJsonApi \Listener \JsonApi \DocumentValidator ;
18
- use CrudJsonApi \Traits \JsonApiTrait ;
19
18
use Crud \Error \Exception \CrudException ;
20
19
use Crud \Event \Subject ;
21
20
use Crud \Listener \ApiListener ;
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ protected function getRepository($entity = null): Table
101
101
*
102
102
* This method will ignore any properties that are entities.
103
103
*
104
+ * @param \Cake\Datasource\EntityInterface $entity Entity
104
105
* @return array
105
106
*/
106
107
protected function entityToShallowArray (EntityInterface $ entity )
@@ -110,6 +111,10 @@ protected function entityToShallowArray(EntityInterface $entity)
110
111
? $ entity ->getVisible ()
111
112
: $ entity ->visibleProperties ();
112
113
foreach ($ properties as $ property ) {
114
+ if ($ property === '_joinData ' ) {
115
+ continue ;
116
+ }
117
+
113
118
$ value = $ entity ->get ($ property );
114
119
if (is_array ($ value )) {
115
120
$ result [$ property ] = [];
You can’t perform that action at this time.
0 commit comments