Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Doctrine 1 creating foreign key constraints

Tags:

php

doctrine

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

like image 450
mosch Avatar asked Jan 28 '26 20:01

mosch


1 Answers

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

public function setUp() {
        $this->option('type', 'MyISAM');
}
like image 135
ITroubs Avatar answered Jan 30 '26 12:01

ITroubs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!