Permalink
Browse files

doctrine1-documentation-25 Edit technology.rst

  • Loading branch information...
1 parent 106bf7a commit 7ce3c9dd6d3c323bcd68196233d320a3d2bd64f0 @jeserkin jeserkin committed Apr 25, 2012
@@ -548,6 +548,8 @@ models with YAML.
In the next several examples we will demonstrate some of the behaviors
that come bundled with Doctrine.
+.. _behaviors-core-behaviors-versionable:
+
-----------
Versionable
-----------
@@ -705,6 +707,8 @@ The above example would produce the following output:
and the ``title`` is back to the original value was set it to when
creating the ``BlogPost``.
+.. _behaviors-core-behaviors-timestampable:
+
-------------
Timestampable
-------------
@@ -818,6 +822,8 @@ Name Default Description
``onInsert`` ``true`` Whether or not to set the updated date when the record is first inserted.
============ ======== =========================================================================
+.. _behaviors-core-behaviors-sluggable:
+
---------
Sluggable
---------
@@ -929,6 +935,8 @@ Name Default Description
``indexName`` ``sluggable`` The name of the index to create.
=============== ========================================= ===============================================
+.. _behaviors-core-behaviors-i18n:
+
----
I18n
----
@@ -1090,6 +1098,8 @@ The above example would produce the following output:
$ php test.php
joku otsikko
+.. _behaviors-core-behaviors-nestedset:
+
---------
NestedSet
---------
@@ -1170,6 +1180,8 @@ The above code would output the following SQL query:
We won't discuss the ``NestedSet`` behavior in 100% detail here. It is a
very large behavior so it has its own :doc:`hierarchical-data`.
+.. _behaviors-core-behaviors-searchable:
+
----------
Searchable
----------
@@ -1251,9 +1263,11 @@ The above code would output the following SQL query:
was automatically created.
Because the ``Searchable`` behavior is such a large topic, we have more
-information on this that can be found in the `doc:`searching`
+information on this that can be found in the :doc:`searching`
chapter.
+.. _behaviors-core-behaviors-geographical:
+
------------
Geographical
------------
@@ -1457,6 +1471,8 @@ Download and import the csv file with the following function:
$zipcode->save();
}
+.. _behaviors-core-behaviors-softdelete:
+
----------
SoftDelete
----------
@@ -1769,5 +1785,5 @@ to write our own for our models as well as how to use all the great
behaviors that come bundled with Doctrine.
Now we are ready to move on to discuss the :doc:`searching`
-behavior in more detail in the `doc:`searching` chapter. As it is a
+behavior in more detail in the :doc:`searching` chapter. As it is a
large topic we have devoted an entire chapter to it.
@@ -10,6 +10,8 @@ discussed most of the components in the previous chapters but after this
chapter you will have a better idea of all the components and what their
jobs are.
+.. _component-overview-manager:
+
=======
Manager
=======
@@ -44,6 +46,7 @@ over the $manager variable to loop over the connections.
echo $connection->getName() . "";
}
+.. _component-overview-connection:
==========
Connection
@@ -126,6 +129,8 @@ instances for that connection. You could of course optionally call
$user1->save();
$user2->save();
+.. _component-overview-table:
+
=====
Table
=====
@@ -448,6 +453,8 @@ Now when we ask for the ``User`` table object we will get the following::
dql-doctrine-query-language:magic-finders :name] section of the DQL
chapter.
+.. _component-overview-record:
+
======
Record
======
@@ -808,6 +815,8 @@ collection calling delete one each one::
$users->delete();
+.. _component-overview-using-expression-values:
+
-----------------------
Using Expression Values
-----------------------
@@ -1007,6 +1016,8 @@ simply use::
$record->call('trim', 'username');
+.. _component-overview-collection:
+
==========
Collection
==========
@@ -1610,6 +1621,8 @@ created when you try to instantiate an instance of the manager and the
future to provide a centralized and consistent table creation procedure
for installation purposes.
+.. _component-overview-views:
+
=====
Views
=====
@@ -1679,4 +1692,4 @@ help make your life easier on a day to day basis.
Lets move on to the :doc:`next chapter <native-sql>` where we can learn
about how to use native SQL to hydrate our data in to arrays and objects
-instead of the Doctrine Query Language.
+instead of the Doctrine Query Language.
@@ -18,6 +18,8 @@ old pieces to use the ORM.
The DBAL is composed of a few different modules. In this chapter we will
discuss the different modules and what their jobs are.
+.. _database-abstraction-layer-export:
+
======
Export
======
@@ -502,6 +504,8 @@ We can drop the database with the following code:
// ...
$conn->export->dropDatabase('events_db');
+.. _database-abstraction-layer-import:
+
======
Import
======
@@ -624,6 +628,8 @@ Now we can list the views we just created:
$views = $conn->import->listViews();
print_r($views);
+.. _database-abstraction-layer-datadict:
+
========
DataDict
========
@@ -752,4 +758,4 @@ This chapter is indeed a nice one. The Doctrine DBAL is a great tool all
by itself. It is probably one of the most fully featured and easy to use
PHP database abstraction layers available today.
-Now we are ready to move on and learn about how to use :doc:`transactions`.
+Now we are ready to move on and learn about how to use :doc:`transactions`.
@@ -888,6 +888,8 @@ Field Type
``someblob`` ``longblob``
================= ===============
+.. _defining-models-relationships:
+
=============
Relationships
=============
@@ -2766,4 +2768,4 @@ are ready to move on to learning about how to :doc:`work with models
<working-with-models>` in your application.
This is a very large topic as well so take a break, grab a mountain dew
-and hurry back for the :doc:`next chapter <working-with-models>`.
+and hurry back for the :doc:`next chapter <working-with-models>`.
@@ -15,6 +15,8 @@ lot of benefits like portability and ease of development it's inevitable that
this leads to drawbacks in terms of performance. This chapter tries to help
you to get the best performance out of Doctrine.
+.. _improving-performance-compile:
+
=======
Compile
=======
@@ -328,7 +330,7 @@ Other Tips
::
- $role = new Role();
+ $role = new Role();
$role->name = 'New Role Name';
$user->Roles[] = $newRole;
Oops, something went wrong.

0 comments on commit 7ce3c9d

Please sign in to comment.