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

Little Error in the documentation #58

Closed 123Haynes closed 10 years ago

123Haynes commented 11 years ago

Hi,

i'm currently trying to get started with pheasant and i noticed a little error in the available documentation. Here: https://pheasant.readthedocs.org/en/latest/gettingstarted.html#creating-tables

php migrator->migrate('post', Post::schema()); should be: php migrator->create('post', Post::schema());

I kinda missed how to use the tableName method too. Yes it's easy, but it isn't present in any example so i had to search through the Code to see that the expected return value.

lox commented 11 years ago

Thanks for the bug report, glad to hear you are starting to use Pheasant! My biggest todo over the next few weeks is to fill out that documentation. In the mean time, feel free to post issues or email me directly and I'll do what I can to help!

iambkramer commented 10 years ago

shouldn't it use initialize now?

$migrator->initialize(Post::schema());