1

In Kohana ORM, do we need to set up the database table with type of InnoDb. I learn that MyISam is a little bit faster than InnoDb. For example, here

is the Database schema for ORM driver, can we simply use MyISam without defining foreign-keys and leave the rest to our code using $_has_many, $_belong_to...?

Thank you:)

4

1 回答 1

1

Kohana ORM doesn't differentiate between mysql table engines and it cannot use foreign key constraints to manage dependencies automatically.

So whichever table engine you use - you still has to specify $_belongs_to etc relation maps manually.

于 2013-05-15T05:04:06.580 回答