@@ 574-576 (lines=3) @@ | ||
571 | $indexLines[] = " * indexes={"; |
|
572 | foreach ($metadata->indexes as $index) { |
|
573 | $keys = array(); |
|
574 | foreach ($index['keys'] as $key => $value) { |
|
575 | $keys[] = '"' . $key . '"="' . $value . '"'; |
|
576 | } |
|
577 | $options = array(); |
|
578 | foreach ($index['options'] as $key => $value) { |
|
579 | $options[] = '"' . $key . '"="' . $value . '"'; |
|
@@ 578-580 (lines=3) @@ | ||
575 | $keys[] = '"' . $key . '"="' . $value . '"'; |
|
576 | } |
|
577 | $options = array(); |
|
578 | foreach ($index['options'] as $key => $value) { |
|
579 | $options[] = '"' . $key . '"="' . $value . '"'; |
|
580 | } |
|
581 | $indexes[] = '@ODM\\Index(keys={' . implode(', ', $keys) . '}, options={' . implode(', ', $options) . '})'; |
|
582 | } |
|
583 | $indexLines[] = "\n * " . implode(",\n * ", $indexes); |