3

Is it possible to prevent doctrine 1.2 from adding foreign key constraints for a relation?

mosch
  • 1,005
  • 1
  • 12
  • 24
  • related : http://stackoverflow.com/questions/2623941/doctrine-1-2-how-do-i-prevent-a-contraint-from-being-assigned-to-both-sides-of-a – Haim Evgi Oct 04 '10 at 12:01

1 Answers1

2

if you are going to use MYISAM then just do this in your model:

public function setUp() {
        $this->option('type', 'MyISAM');
}
ITroubs
  • 11,094
  • 4
  • 27
  • 25
  • 1
    you can also specify it in schema.yml for all models by adding these lines at the top: options: type: MyISAM – Dziamid Dec 03 '10 at 01:50