Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 1.2.0
-
Fix Version/s: None
-
Component/s: Behaviors
-
Labels:None
-
Environment:PHP 5.2.3 / Symfony 1.4.6
Description
For models using the 'package' attribute in the schema definition, the version classes do not get created. However, the version table gets created.
There is no problem during the build, but when loading fixtures, there is a fatal error: Class TaxCodeVersion not found
TaxCode:
package: Masters
tableName: Fin_Tax_Codes
actAs:
Activateable: ~
SoftDelete: ~
- Versionable:
- tableName: fin_tax_codes_version
- versionColumn: version
- className: %CLASS%Version
- auditLog: true
Auditable: ~
Timestampable: ~
.......
- auditLog: true
Same here,
If i use this yaml file:
Page:
actAs:
NestedSet:
hasManyRoots: true
rootColumnName: root_id
Versionable:
versionColumn: version
className: %CLASS%Version
auditLog: true
Timestampable:
created:
name: created_at
type: timestamp
format: Y-m-d H
updated:
name: updated_at
type: timestamp
format: Y-m-d H
I18n:
fields: [name]
columns:
name: string(255)
PageVersion and PageTranslation Models don't get generated if i use 'build-models-yaml'. Have to create the Models manually then it works fine.