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