Development

#2445 (Bug in doctrine-build-schema with MSSQL)

You must first sign up to be able to contribute.

Ticket #2445 (closed defect: invalid)

Opened 2 years ago

Last modified 2 years ago

Bug in doctrine-build-schema with MSSQL

Reported by: Georg.Bez Assigned to: chtito
Priority: minor Milestone:
Component: sfDoctrinePlugin Version: 1.0.8
Keywords: mssql doctrine-build-schema Cc:
Qualification: Unreviewed

Description

Hi! If I try to provide the "doctrine-build-schema" with my (very simple) test database under MSSQL come an error.

Thank you, Georg


Table "artikel":

id, int
titel, varchar
text, text

C:\vhosts\EDISOF~1\htdocs\KURSSE~1>symfony doctrine-build-schema
PHP Notice:  Undefined index:  type in C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\DataDict\Mssql.php on line 126

Notice: Undefined index:  type in C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\DataDict\Mssql.php on line 126

Call Stack:
    0.9404      62272   1. {main}() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\symfony:0
    0.9428     122784   2. include('C:\xampp\php\pear\data\symfony\bin\symfony.php') C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\symfony:14
    1.0578    2291240   3. pakeApp->run() C:\xampp\php\pear\data\symfony\bin\symfony.php:174
    1.0718    2436120   4. pakeTask->invoke() C:\xampp\php\pear\symfony\vendor\pake\pakeApp.class.php:175
    1.0735    2438960   5. pakeTask->execute() C:\xampp\php\pear\symfony\vendor\pake\pakeTask.class.php:181
    1.0736    2440072   6. call_user_func_array() C:\xampp\php\pear\symfony\vendor\pake\pakeTask.class.php:218
    1.0736    2440264   7. run_doctrine_build_schema() C:\xampp\php\pear\symfony\vendor\pake\pakeTask.class.php:0
    3.9847    6403936   8. _call_doctrine_cli() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\data\tasks\sfPakeDoctrine.php:285
    4.8107    6845040   9. Doctrine_Cli->run() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\data\tasks\sfPakeDoctrine.php:673
    4.8107    6845040  10. Doctrine_Cli->_run() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Cli.php:88
    4.8115    6847472  11. Doctrine_Task_GenerateYamlDb->execute() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Cli.php:135
    4.8115    6847648  12. Doctrine::generateYamlFromDb() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Task\GenerateYamlDb.php:41
    4.8115    6847944  13. Doctrine::generateModelsFromDb() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine.php:664
    4.8184    6950176  14. Doctrine_Import->importSchema() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine.php:648
    5.0307    7196456  15. Doctrine_Import_Mssql->listTableColumns() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Import.php:218
    5.0379    7276848  16. Doctrine_DataDict_Mssql->getPortableDeclaration() C:\vhosts\edisoft_verschiedenes\htdocs\kursservice\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Import\Mssql.php:76



  [sfException]
  unknown database attribute type:



Change History

10/25/07 20:00:38 changed by Jonathan.Wage

  • status changed from new to closed.
  • resolution set to invalid.

This is a Doctrine bug. I have moved it to Doctrine trac

http://doctrine.pengus.net/trac/ticket/519

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.