mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #973] [CLOSED] Added index flags support in annotation, xml & yaml mapping drivers. #8986
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/973
Author: @adrianolek
Created: 3/6/2014
Status: ❌ Closed
Base:
master← Head:index-flags📝 Commits (5)
0368e64Added index flags support in annotation, xml & yaml mapping drivers.6271f60CS fixes6fbe944Added index flags test78a8b0cAdded Comment entity mapping for StaticPHPDriver test369694acs fixes📊 Changes
10 files changed (+145 additions, -21 deletions)
View changed files
📝
doctrine-mapping.xsd(+1 -0)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+7 -1)📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+14 -10)📝
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php(+20 -9)📝
lib/Doctrine/ORM/Mapping/Index.php(+5 -0)📝
lib/Doctrine/ORM/Tools/SchemaTool.php(+5 -1)📝
tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php(+45 -0)➕
tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php(+21 -0)➕
tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Comment.dcm.xml(+18 -0)➕
tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.Comment.dcm.yml(+9 -0)📄 Description
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:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.