@@ 53-57 (lines=5) @@ | ||
50 | foreach ($xmlRoot->field as $field) { |
|
51 | $mapping = $this->getMappingAttributes($field); |
|
52 | $booleanAttributes = array('id', 'unique'); |
|
53 | foreach ($mapping as $key => $value) { |
|
54 | if (in_array($key, $booleanAttributes)) { |
|
55 | $mapping[$key] = ('true' === $mapping[$key]); |
|
56 | } |
|
57 | } |
|
58 | ||
59 | $this->addFieldMapping($classMetadata, $mapping); |
|
60 | } |
@@ 37-41 (lines=5) @@ | ||
34 | } |
|
35 | ||
36 | $booleanAttributes = array('id', 'unique'); |
|
37 | foreach ($mapping as $key => $value) { |
|
38 | if (in_array($key, $booleanAttributes)) { |
|
39 | $mapping[$key] = (true === $mapping[$key]); |
|
40 | } |
|
41 | } |
|
42 | ||
43 | $this->addFieldMapping($classMetadata, $mapping); |
|
44 | } |