@@ 561-563 (lines=3) @@ | ||
558 | $indexLines[] = ' * indexes={'; |
|
559 | foreach ($metadata->indexes as $index) { |
|
560 | $keys = array(); |
|
561 | foreach ($index['keys'] as $key => $value) { |
|
562 | $keys[] = '"' . $key . '"="' . $value . '"'; |
|
563 | } |
|
564 | $options = array(); |
|
565 | foreach ($index['options'] as $key => $value) { |
|
566 | $options[] = '"' . $key . '"="' . $value . '"'; |
|
@@ 565-567 (lines=3) @@ | ||
562 | $keys[] = '"' . $key . '"="' . $value . '"'; |
|
563 | } |
|
564 | $options = array(); |
|
565 | foreach ($index['options'] as $key => $value) { |
|
566 | $options[] = '"' . $key . '"="' . $value . '"'; |
|
567 | } |
|
568 | $indexes[] = '@ODM\\Index(keys={' . implode(', ', $keys) . '}, options={' . implode(', ', $options) . '})'; |
|
569 | } |
|
570 | $indexLines[] = "\n * " . implode(",\n * ", $indexes); |