File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ private function parsePhpDocForProperty(\ReflectionProperty $property): string
151151        if  ($ result'unknown ' ) {
152152            if  (preg_match ('/type="([a-zA-Z]+)"/i ' , $ docComment$ matches
153153                $ result$ this getTypescriptProperty ($ matches1 ]);
154-             } elseif  (preg_match ('/targetEntity="([a-zA-Z]+)"/i ' , $ docComment$ matches
154+             } elseif  (preg_match ('/targetEntity="([a-zA-Z-  \\\\ ]+)"/i ' , $ docComment$ matches
155155                $ result$ this getRelationCollectionProperty ($ docComment
156156            }
157157        }
@@ -223,13 +223,14 @@ private function getRelationCollectionProperty(string $type): string
223223        $ matches
224224
225225        $ regexarray (
226-             '/OneToOne\(targetEntity="([a-zA-Z]+)"/i '  => '' ,
226+             '/targetEntity="([a-zA-Z]+)"/i '  => '' ,
227+             '/targetEntity="([a-zA-Z]+) \\\\([a-zA-Z]+) \\\\([a-zA-Z]+)"/i '  => '' ,
227228            '/targetEntity="([a-zA-Z]+)"/i '  => '[] ' ,
228229        );
229230
230231        foreach  ($ regexas  $ reg$ val
231232            if  (preg_match ($ reg$ type$ matches
232-                 $ result$ matches[ 1 ]  . $ val
233+                 $ resultend ( $ matches)  . $ val
233234                break ;
234235            }
235236        }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments