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

Fixed the structure of the reverse-engineered mapping #1123

Merged
merged 2 commits into from
Aug 30, 2014

Conversation

stof
Copy link
Member

@stof stof commented Aug 27, 2014

when using the DatabaseDriver, the field mapping being generated does not match the field mapping expected by all other drivers or the SchemaTool. This means that these mapping settings get ignored.

See doctrine/migrations#184 for the initial report

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3278

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Member

@stof a lot of tests seem to fail due to undefined index 'comment' though :-\

@Ocramius
Copy link
Member

Related: DDC-3277


$this->assertArrayHasKey('columnDefault', $metadata->fieldMappings);
$this->assertEquals('test_default', $metadata->fieldMappings['columnDefault']['default']);
$this->assertEquals('test_default', $metadata->fieldMappings['columnDefault']['options']['default']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stof can you add another test for the fixed option?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I don't know exactly which platforms are supporting the fixed option for columns to test it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stof I added a documentation chapter in DBAL about type mappings some months ago. There you can see which platform supports it and which doesn't.
Looks like only Drizzle does not support distinction between fixed and variable string types.

@stof
Copy link
Member Author

stof commented Aug 28, 2014

a lot of tests seem to fail due to undefined index 'comment' though :-\

Only because I add to do a separate commit to update them, as I did it through the web UI on github

@Ocramius Ocramius self-assigned this Aug 30, 2014
Ocramius added a commit that referenced this pull request Aug 30, 2014
Fixed the structure of the reverse-engineered mapping
@Ocramius Ocramius merged commit 6e79515 into doctrine:master Aug 30, 2014
@Ocramius
Copy link
Member

Test for fixed may be added later.

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

Successfully merging this pull request may close these issues.

5 participants