by
187 10
0
4
3,521
15
Top 1% !
Famous
Tagged
Specified
Popularity: 3636th place
This snippet is Public
Frameworksymfony
LanguagePHP

doctrine:mapping:convert type [ enum , set, varbinary, etc ] problem solved

doctrine fails to load mysql tables if they have enum values or tables with no primary keys , this is the code solves it
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1463708/doctrine-mapping-convert-type---enum---s?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
# Doctrine Configuration doctrine: dbal: driver: pdo_mysql host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: UTF8 # if using pdo_sqlite as your database driver: # 1. add the path in parameters.yml # e.g. database_path: "%kernel.root_dir%/data/data.db3" # 2. Uncomment database_path in parameters.yml.dist # 3. Uncomment next line: # path: "%database_path%" schema_filter: ~^(?!hesk_active_sessions|hesk_tags|hesk_tickets_tags)~ mapping_types: enum: string set: string varbinary: string tinyblob: text
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus