mergeUnmodified() public method

Merge array to current structure without setting modification mark
public mergeUnmodified ( array $data ) : Structure
$data array
return Structure
示例#1
0
 public function fieldValuesDataProvider()
 {
     $mongoId = new \MongoId();
     $stdClass = new \stdClass();
     $structure = new Structure();
     $structure->mergeUnmodified(array('param' => 'value'));
     return array('int' => array(1, 2, array(1, 2)), 'string' => array('string1', 'string2', array('string1', 'string2')), 'empty_stdclass' => array($stdClass, $stdClass, array(array(), array())), 'MongoId' => array($mongoId, $mongoId, array($mongoId, $mongoId)), 'list' => array(array(1), array(2), array(array(1), array(2))), 'list_of_list' => array(array(array(1)), array(array(2)), array(array(array(1)), array(array(2)))), 'subdocument' => array(array('subdoc' => 1), array('subdoc' => 2), array(array('subdoc' => 1), array('subdoc' => 2))), 'structure' => array($structure, $structure, array(array('param' => 'value'), array('param' => 'value'))));
 }