Skip to content

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

2 participants

@doctrinebot

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

Comment created by @doctrinebot:

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

@doctrinebot

Comment created by @ocramius:

Merged: 3a1e24e

@doctrinebot

Issue was closed with resolution "Fixed"

@Ocramius Ocramius was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.5 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.