|
|
@@ -23,14 +23,14 @@
|
|
|
<para>
|
|
|
For all of the same options that are available when configuring an extended
|
|
|
Zend_Db_Table_Abstract class, those options are also available when describing
|
|
|
- a definition file. This definition file should be passed to the class at
|
|
|
+ a definition file. This definition file should be passed to the class at
|
|
|
instantiation time so that it can know the full definition of all tables
|
|
|
in said definition.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
Below is a definition that will describe the table names and relationships
|
|
|
- between table objects. Note: if 'name' is left out of the definition, it
|
|
|
+ between table objects. Note: if 'name' is left out of the definition, it
|
|
|
will be taken as the key of the defined table (an example of this is in the
|
|
|
'genre' section in the example below.)
|
|
|
</para>
|
|
|
@@ -78,7 +78,7 @@ $definition = new Zend_Db_Table_Definition(array(
|
|
|
<para>
|
|
|
As you can see, the same options you'd generally see inside of an
|
|
|
extended Zend_Db_Table_Abstract class are documented in this
|
|
|
- array as well. When passed into Zend_Db_Table constructor, this
|
|
|
+ array as well. When passed into Zend_Db_Table constructor, this
|
|
|
definition is <emphasis>persisted</emphasis> to any tables it will need
|
|
|
to create in order to return the proper rows.
|
|
|
</para>
|
|
|
@@ -127,8 +127,8 @@ foreach ($authors as $author) {
|
|
|
|
|
|
<para>
|
|
|
Sometimes you want to use both paradigms for defining and using the
|
|
|
- table gateway: both by extension and concrete instantiation. To do this
|
|
|
- simply leave out any table configurations out of the definition. This will
|
|
|
+ table gateway: both by extension and concrete instantiation. To do this
|
|
|
+ simply leave out any table configurations out of the definition. This will
|
|
|
allow Zend_Db_Table to look for the actual refered class instead of the
|
|
|
definition key.
|
|
|
</para>
|
|
|
@@ -136,7 +136,7 @@ foreach ($authors as $author) {
|
|
|
<para>
|
|
|
Building on the example above, we will allow for one of the table configurations
|
|
|
to be a Zend_Db_Table_Abstract extended class, while keeping the rest of the tables
|
|
|
- as part of the definition. We will also show how one would interact with this
|
|
|
+ as part of the definition. We will also show how one would interact with this
|
|
|
new definition.
|
|
|
</para>
|
|
|
|