Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Updated docs to fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Apr 18, 2014
1 parent 09170b1 commit 99d2202
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ In the absence of an explicit definition, the tablename is inferred from the cla
}
}
Properties are mapped to the same named column in the database. See :doc:`mapping/types` for more
about what types are available and their parameters.
Properties are mapped to the same named column in the database. See :doc:`mapping/types` for more about what types are available and their parameters.

Creating Tables
---------------

Pheasant tends to stay out of the way when it comes to creating and altering tables, but it does provide
a minimal helper for the creation of tables:

Pheasant tends to stay out of the way when it comes to creating and altering tables, but it does provide a minimal helper for the creation of tables:

.. code-block:: php
<?php
$migrator = new \Pheasant\Migrate\Migrator();
$migrator->migrate('post', Post::schema());
$migrator->create('post', Post::schema());
Alternately, DomainObjects provide a tableName() method that returns the table name as a string.


Saving and Updating
-------------------
Expand Down

0 comments on commit 99d2202

Please sign in to comment.