Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-3014: [GH-973] Added index flags support in annotation, xml & yaml mapping drivers. #3781

Closed
doctrinebot opened this issue Mar 6, 2014 · 3 comments
Assignees
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of adrianolek:

Url: #973

Message:

It allows specifying eg. fulltext index for MysqlPlatform (the platform already supports it - https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L714 , but it couldn't be used in annotations/xml/yaml/php schemas). And also other platforms use flags for indexes (virtual, clustered etc.).

So now flags can be used like:

/****
 * @Table(...,indexes={@Index(columns={"description"},flags={"fulltext"})})
 */
class Foo
{ ... }
...
    <indexes>
      <index name="0" columns="description" flags="fulltext"/>
    </indexes>
...
Foo:
  ...
  indexes:
    -
      columns: [ description ]
      flags: [ fulltext ]
$metadata->setPrimaryTable(array(
   ...
   'indexes' => array(
       array(
          'columns' => array('description'),
          'flags' => array('fulltext'),
       )
   ),
   ...
));
@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-973] was closed:
#973

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

Merged: 3a1e24e

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants