Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.0-ALPHA3
-
Fix Version/s: None
-
Component/s: Schema Files
-
Labels:None
-
Environment:Linux (Fedora 10), symfony 1.3 Beta1, php 5.2.8
Description
Bug N1
When i define "package: user" (to store my Comment, Photo and etc. models in 1 directory lib/models/doctrine/user/) and run "doctrine:build-all-reload --no-confirmation" task, it creates unnecessary to me Plugin* models in plugin/ folder and task dies with fatal error:
PHP Fatal error: Class 'PluginCommentTable' not found in /home/username/www/sfpro/dev/playground/lib/model/doctrine/user/CommentTable.class.php on line 4
here is my schema.yml:
Comment: tableName: comment package: user columns: id: type: integer(4) primary: true autoincrement: true message: varchar(255)
Bug N2
ok, i have changed "package" value to "user.sometext" and runned "doctrine:build-all-reload --no-confirmation" task - it creates all models without errors, but does not create subfolders "user/sometext"
here is my schema.yml
Comment: tableName: comment package: user.sometext package_custom_path: lib/model/doctrine/user/plugin columns: id: type: integer(4) primary: true autoincrement: true message: varchar(255)
Bug N3
my schema.yml is:
Comment: tableName: comment package: user package_custom_path: lib/model/doctrine/user/plugin columns: id: type: integer(4) primary: true autoincrement: true message: varchar(255)
when i run symfony task "doctrine:build-all-reload --no-confirmation"
i got php warning:
PHP Warning: file_get_contents(/home/username/www/sfpro/dev/playground/lib/model/doctrine//base/BaseComment.class.php): failed to open stream: No such file or directory in /usr/lib/symfony/1.3-svn/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 78
warning message shows "//" where i should have "user" value
Packages should work now with Symfony 1.3 and Doctrine 1.2. Though, I would still not recommend using it since packages are for symfony plugins.