Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Place:
- columns:
- version: {type: integer, length: 4}
- informations: {type: string, length: 4000}
- created_at:
- actAs:
- Versionable: # no options
- I18n:
- fields: [ 'informations' ]
- ----
- Expected generated code :
- /**
- * This class has been auto-generated by the Doctrine ORM Framework
- */
- abstract class BasePlace extends sfDoctrineRecord
- {
- public function setTableDefinition()
- {
- $this->setTableName('place');
- $this->hasColumn('version', 'integer', 4);
- $this->hasColumn('informations', 'string', 4000);
- $this->hasColumn('created_at', '', null);
- $this->actAs('Versionable');
- $this->actAs('I18n', array(array('fields' => 'informations')));
- }
- public function setUp()
- {
- $this->hasMany('Vote', array('local' => 'id',
- 'foreign' => 'place_id'));
- }
- }
- ----
- What I get :
- /**
- * This class has been auto-generated by the Doctrine ORM Framework
- */
- abstract class BasePlace extends sfDoctrineRecord
- {
- public function setTableDefinition()
- {
- $this->setTableName('place');
- $this->hasColumn('version', 'integer', 4);
- $this->hasColumn('informations', 'string', 4000);
- $this->hasColumn('created_at', '', null);
- $this->actAs('Versionable', arra));
- $this->actAs('I18n', array(array('0' => ''informations'));
- }
- public function setUp()
- {
- $this->hasMany('Vote', array('local' => 'id',
- 'foreign' => 'place_id'));
- }
- }
Add Comment
Please, Sign In to add comment