@@ -808,7 +808,7 @@ private function getReferencedResult($table, $viaColumn, Filtering $filtering =
808808 ->where ('%n.%n IN %in ' , $ table , $ primaryKey , $ ids )
809809 ->execute ()->setRowClass (null )->fetchAll ();
810810 }
811- $ this ->referenced [$ key ] = self ::createInstance ($ data , $ table , $ this ->connection , $ this ->mapper );
811+ $ this ->referenced [$ key ] = self ::createInstance (Helpers:: convertDbRows ( $ table , $ data, $ this -> mapper ) , $ table , $ this ->connection , $ this ->mapper );
812812 }
813813 return $ this ->referenced [$ key ];
814814 }
@@ -834,7 +834,7 @@ private function getReferencedResult($table, $viaColumn, Filtering $filtering =
834834
835835 if (!isset ($ this ->referenced [$ key ])) {
836836 $ data = $ this ->connection ->query ($ args )->setRowClass (null )->fetchAll ();
837- $ this ->referenced [$ key ] = self ::createInstance ($ data , $ table , $ this ->connection , $ this ->mapper );
837+ $ this ->referenced [$ key ] = self ::createInstance (Helpers:: convertDbRows ( $ table , $ data, $ this -> mapper ) , $ table , $ this ->connection , $ this ->mapper );
838838 }
839839 return $ this ->referenced [$ key ];
840840 }
@@ -882,7 +882,7 @@ private function getReferencingResult($table, $viaColumn = null, Filtering $filt
882882 $ statement ->where ('%n.%n IN %in ' , $ table , $ viaColumn , $ ids );
883883 }
884884 $ data = $ statement ->execute ()->setRowClass (null )->fetchAll ();
885- $ this ->referencing [$ key ] = self ::createInstance ($ data , $ table , $ this ->connection , $ this ->mapper );
885+ $ this ->referencing [$ key ] = self ::createInstance (Helpers:: convertDbRows ( $ table , $ data, $ this -> mapper ) , $ table , $ this ->connection , $ this ->mapper );
886886 }
887887 } else {
888888 isset ($ ids ) or $ ids = $ this ->extractIds ($ this ->mapper ->getPrimaryKey ($ this ->table ));
@@ -906,7 +906,7 @@ private function getReferencingResult($table, $viaColumn = null, Filtering $filt
906906
907907 if (!isset ($ this ->referencing [$ key ])) {
908908 $ data = $ this ->connection ->query ($ args )->setRowClass (null )->fetchAll ();
909- $ this ->referencing [$ key ] = self ::createInstance ($ data , $ table , $ this ->connection , $ this ->mapper );
909+ $ this ->referencing [$ key ] = self ::createInstance (Helpers:: convertDbRows ( $ table , $ data, $ this -> mapper ) , $ table , $ this ->connection , $ this ->mapper );
910910 }
911911 }
912912 return $ this ->referencing [$ key ];
@@ -923,7 +923,7 @@ private function getReferencingResult($table, $viaColumn = null, Filtering $filt
923923 $ this ->buildUnionStrategySql ($ ids , $ table , $ viaColumn )
924924 )->setRowClass (null )->fetchAll ();
925925 }
926- $ this ->referencing [$ key ] = self ::createInstance ($ data , $ table , $ this ->connection , $ this ->mapper );
926+ $ this ->referencing [$ key ] = self ::createInstance (Helpers:: convertDbRows ( $ table , $ data, $ this -> mapper ) , $ table , $ this ->connection , $ this ->mapper );
927927 }
928928 } else {
929929 isset ($ ids ) or $ ids = $ this ->extractIds ($ this ->mapper ->getPrimaryKey ($ this ->table ));
@@ -951,7 +951,7 @@ private function getReferencingResult($table, $viaColumn = null, Filtering $filt
951951 if (!isset ($ this ->referencing [$ key ])) {
952952 $ sql = $ this ->buildUnionStrategySql ($ ids , $ table , $ viaColumn , $ filtering );
953953 $ data = $ this ->connection ->query ($ sql )->setRowClass (null )->fetchAll ();
954- $ result = self ::createInstance ($ data , $ table , $ this ->connection , $ this ->mapper );
954+ $ result = self ::createInstance (Helpers:: convertDbRows ( $ table , $ data, $ this -> mapper ) , $ table , $ this ->connection , $ this ->mapper );
955955 $ this ->referencing [$ key ] = $ result ;
956956 }
957957 }
0 commit comments