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

fix(Table): support for index declared with single field as string #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alquerci
Copy link

@alquerci alquerci commented Apr 12, 2024

fixes #132

@alquerci alquerci force-pushed the fix-table-support-for-index-declared-with-single-field-as-string branch from 41ed24c to 64c8117 Compare April 12, 2024 20:59
@alquerci alquerci force-pushed the fix-table-support-for-index-declared-with-single-field-as-string branch from 64c8117 to df3108e Compare April 12, 2024 21:04
@alquerci alquerci changed the title [WIP] fix(Table): support for index declared with single field as string fix(Table): support for index declared with single field as string Apr 12, 2024
@alquerci
Copy link
Author

On PHP 7.4 a fatal error occured

Fatal error: Uncaught TypeError: Argument 1 passed to Doctrine_Export_Sqlite::getIndexFieldDeclarationList() must be of the type array, string given, called in /app/lib/Doctrine/Export/Sqlite.php on line 122 and defined in /app/lib/Doctrine/Export/Sqlite.php:134
Stack trace:
#0 /app/lib/Doctrine/Export/Sqlite.php(122): Doctrine_Export_Sqlite->getIndexFieldDeclarationList('some_column_nam...')
#1 /app/lib/Doctrine/Export/Sqlite.php(232): Doctrine_Export_Sqlite->createIndexSql('index_declared_...', 'single_field_in...', Array)
#2 /app/lib/Doctrine/Export.php(1263): Doctrine_Export_Sqlite->createTableSql('index_declared_...', Array, Array)
#3 /app/lib/Doctrine/Export.php(1120): Doctrine_Export->exportClassesSql(Array)
#4 /app/lib/Doctrine/Export.php(1205): Doctrine_Export->exportSortedClassesSql(Array)
#5 /app/tests/DoctrineTest/Doctrine_UnitTestCase.php(229): Doctrine_Export->exportClasses(Array)
#6 /app/tests/Table/IndexesUsingSingleFieldStringTestCase.php(9): Doctrine_UnitTestCase->prepareTables()
#7 /app/tests/DoctrineTe in /app/lib/Doctrine/Export/Sqlite.php on line 134

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.

1 participant