iterate in $data until fields for empty relation are over #22
| @ -278,7 +278,10 @@ class PersistentDataManager implements IPersistentDataManager | ||||
|                     $method = 'set' . str_replace('_', '', ucwords($relation, '_')); | ||||
|                     $model->$method($relationModel); | ||||
|                 } else { | ||||
|                     next($data); | ||||
|                     while (substr($key, 0, strlen($relation . '__')) === $relation . '__') { | ||||
|                         next($data); | ||||
|                         $key = key($data); | ||||
|                     } | ||||
|                 } | ||||
| 
 | ||||
|                 next($relations); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user