@@ -152,7 +152,7 @@  | 
                                                    ||
| 152 | 152 | |
| 153 | 153 |          foreach ($properties as $name => $property) { | 
                                                        
| 154 | 154 | // doctrine can handle id links only  | 
                                                        
| 155 | - if ( $property->link  | 
                                                        |
| 155 | + if ($property->link  | 
                                                        |
| 156 | 156 |                  && $target_class = $this->manager->resolve_targetclass($property)) { | 
                                                        
| 157 | 157 | $link_mapping = [  | 
                                                        
| 158 | 158 | 'fieldName' => $property->name,  |