lox / pheasant

A lightweight data mapper designed to take advantage of PHP 5.3+
http://getpheasant.com
MIT License
101 stars 21 forks source link

Added "dev mode" for automatically creating tables as needed #32

Closed dhotson closed 11 years ago

dhotson commented 11 years ago

This change can be useful in testing environments where you need to setup the schema, but you don't want to maintain a bunch of schema files.

A caveat, I haven't added any test cases for this. I noticed the Pheasant class doesn't have a test case already. Should I add one?

mtibben commented 11 years ago

hmm.. I wonder if it would be better to create a hook or event where a closure can be executed. That would make it more extensible instead of handling such a specific use-case

lox commented 11 years ago

I agree with @mtibben, lets find a better way to do this. Closing in favor of #40.