Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 1.2.0-BETA2, 1.2.0-RC1
-
Fix Version/s: None
-
Component/s: Import/Export
-
Labels:None
-
Environment:WAMP (Windows XP) and MAMP (Mac Os X)
Description
When generating models using Doctrine_Core::createTablesFromModels($modelPath) on Doctrine 1.2, the database isn't generate, but it's work on Doctrine 1.1.
I've send an attachment of my small projet where this problem append.
Activity
KONDRATEK Nicolas
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Environment | WAMP (Windows XP, Apache 2.2.11, MySQL 5.1.36, PHP 5.2.8), Doctrine 1.2.0-BETA2, Zend Framework 1.9.5 | WAMP (Windows XP) and MAMP (Mac Os X) |
| Description |
When generating models using the following options: {noformat}generateBaseClasses = TRUE generateTableClasses = FALSE baseClassPrefix = "Base_" baseClassesDirectory = baseTableClassName = "Doctrine_Table" baseClassName = "Default_Model_Base_Abstract" classPrefix = "Default_Model_" classPrefixFiles = FALSE pearStyle = TRUE{noformat} no tables are generated in the database when calling {noformat} Doctrine_Core::createTablesFromModels('/application/models/');{noformat} . |
When generating models using Doctrine_Core::createTablesFromModels($modelPath) on Doctrine 1.2, the database isn't generate, but it's work on Doctrine 1.1. I've send an attachment of my small projet where this problem append. |
| Attachment | Test_Doctrine.zip [ 10195 ] |
Jonathan H. Wage
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Invalid [ 6 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-301, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Just taking a quick look at this, you are using some weird options together. You need to have classPrefixFiles = true, and the packages in your schema aren't really necessary. Also you aren't doing:
spl_autoload_register(array('Doctrine', 'modelsAutoload'));So the generated models could never be loaded. Nothing is broken in 1.2 that didn't work in 1.0 or 1.1, you're setup just needs a little work.