diff --git a/manual/codes/Advanced components - Cache - Introduction.php b/manual/codes/Advanced components - Cache - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Cache - Query cache.php b/manual/codes/Advanced components - Cache - Query cache.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Eventlisteners - Chaining.php b/manual/codes/Advanced components - Eventlisteners - Chaining.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Eventlisteners - Introduction.php b/manual/codes/Advanced components - Eventlisteners - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Locking Manager - Introduction.php b/manual/codes/Advanced components - Locking Manager - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Locking Manager - Maintainer.php b/manual/codes/Advanced components - Locking Manager - Maintainer.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Locking Manager - Planned.php b/manual/codes/Advanced components - Locking Manager - Planned.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Locking Manager - Technical Details.php b/manual/codes/Advanced components - Locking Manager - Technical Details.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - Validators - List of predefined validators.php b/manual/codes/Advanced components - Validators - List of predefined validators.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - View - Intoduction.php b/manual/codes/Advanced components - View - Intoduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - View - Managing views.php b/manual/codes/Advanced components - View - Managing views.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Advanced components - View - Using views.php b/manual/codes/Advanced components - View - Using views.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Collection - Collection expanding.php b/manual/codes/Basic Components - Collection - Collection expanding.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Collection - Introduction.php b/manual/codes/Basic Components - Collection - Introduction.php new file mode 100644 index 000000000..66d285903 --- /dev/null +++ b/manual/codes/Basic Components - Collection - Introduction.php @@ -0,0 +1,9 @@ +name = 'Arnold'; + +$coll[1]->name = 'Somebody'; + +$coll->save(); +?> diff --git a/manual/codes/Basic Components - Connection - Availible drivers.php b/manual/codes/Basic Components - Connection - Availible drivers.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Exceptions - List of exceptions.php b/manual/codes/Basic Components - Exceptions - List of exceptions.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Exceptions - Overview.php b/manual/codes/Basic Components - Exceptions - Overview.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Manager - Introduction.php b/manual/codes/Basic Components - Manager - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Query - Aggregate functions.php b/manual/codes/Basic Components - Query - Aggregate functions.php new file mode 100644 index 000000000..52af72495 --- /dev/null +++ b/manual/codes/Basic Components - Query - Aggregate functions.php @@ -0,0 +1,15 @@ +from('User(COUNT(id))'); + +// returns an array +$a = $q->execute(); + +// selecting multiple aggregate values: +$q = new Doctrine_Query(); + +$q->from('User(COUNT(id)).Phonenumber(MAX(phonenumber))'); + +$a = $q->execute(); +?> diff --git a/manual/codes/Basic Components - Query - DQL - SQL conversion.php b/manual/codes/Basic Components - Query - DQL - SQL conversion.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Query - Introduction.php b/manual/codes/Basic Components - Query - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - RawSql - Introduction.php b/manual/codes/Basic Components - RawSql - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Record - Callbacks.php b/manual/codes/Basic Components - Record - Callbacks.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Record - Introduction.php b/manual/codes/Basic Components - Record - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Table - Getting relation objects.php b/manual/codes/Basic Components - Table - Getting relation objects.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Basic Components - Table - Introduction.php b/manual/codes/Basic Components - Table - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Configuration - Introduction.php b/manual/codes/Configuration - Introduction.php new file mode 100644 index 000000000..48c9dbfd8 --- /dev/null +++ b/manual/codes/Configuration - Introduction.php @@ -0,0 +1,5 @@ +setAttribute(Doctrine::ATTR_LISTENER, new MyListener()); +?> diff --git a/manual/codes/Configuration - Levels of configuration.php b/manual/codes/Configuration - Levels of configuration.php new file mode 100644 index 000000000..bc31dd4f8 --- /dev/null +++ b/manual/codes/Configuration - Levels of configuration.php @@ -0,0 +1,20 @@ +setAttribute(Doctrine::ATTR_VLD, false); + +// setting a connection level attribute +// (overrides the global level attribute on this connection) + +$conn = $manager->openConnection(new PDO('dsn', 'username', 'pw'); + +$conn->setAttribute(Doctrine::ATTR_VLD, true); + +// setting a table level attribute +// (overrides the connection/global level attribute on this table) + +$table = $conn->getTable('User'); + +$table->setAttribute(Doctrine::ATTR_LISTENER, new UserListener()); +?> diff --git a/manual/codes/Getting started - Compiling.php b/manual/codes/Getting started - Compiling.php new file mode 100644 index 000000000..4e25e99ec --- /dev/null +++ b/manual/codes/Getting started - Compiling.php @@ -0,0 +1,7 @@ + diff --git a/manual/codes/Getting started - Record identifiers - Introduction.php b/manual/codes/Getting started - Record identifiers - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Getting started - Record identifiers - Sequential.php b/manual/codes/Getting started - Record identifiers - Sequential.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Getting started - Requirements.php b/manual/codes/Getting started - Requirements.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Getting started - Setting table definition - Constraints and validators.php b/manual/codes/Getting started - Setting table definition - Constraints and validators.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Mapping object relations - Composites and aggregates.php b/manual/codes/Mapping object relations - Composites and aggregates.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Mapping object relations - Dealing with relations - Working with associations.php b/manual/codes/Mapping object relations - Dealing with relations - Working with associations.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Mapping object relations - Introduction.php b/manual/codes/Mapping object relations - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Mapping object relations - Join table associations - One-to-Many, Many-to-One.php b/manual/codes/Mapping object relations - Join table associations - One-to-Many, Many-to-One.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Mapping object relations - Join table associations - One-to-One.php b/manual/codes/Mapping object relations - Join table associations - One-to-One.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Real world examples - Album lister.php b/manual/codes/Real world examples - Album lister.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Technology - Architecture.php b/manual/codes/Technology - Architecture.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Technology - Design patterns used.php b/manual/codes/Technology - Design patterns used.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Technology - Internal optimizations - DELETE.php b/manual/codes/Technology - Internal optimizations - DELETE.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Technology - Internal optimizations - INSERT.php b/manual/codes/Technology - Internal optimizations - INSERT.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Technology - Internal optimizations - UPDATE.php b/manual/codes/Technology - Internal optimizations - UPDATE.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Technology - Speed.php b/manual/codes/Technology - Speed.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Transactions - Locking strategies - Optimistic locking.php b/manual/codes/Transactions - Locking strategies - Optimistic locking.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Transactions - Locking strategies - Pessimistic locking.php b/manual/codes/Transactions - Locking strategies - Pessimistic locking.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - Cache - Query cache.php b/manual/docs/Advanced components - Cache - Query cache.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - Eventlisteners - Chaining.php b/manual/docs/Advanced components - Eventlisteners - Chaining.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - Eventlisteners - Introduction.php b/manual/docs/Advanced components - Eventlisteners - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - Eventlisteners - Listening events.php b/manual/docs/Advanced components - Eventlisteners - Listening events.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - Validators - Analyzing the ErrorStack.php b/manual/docs/Advanced components - Validators - Analyzing the ErrorStack.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - View - Managing views.php b/manual/docs/Advanced components - View - Managing views.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Advanced components - View - Using views.php b/manual/docs/Advanced components - View - Using views.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Connection - Querying the database.php b/manual/docs/Basic Components - Connection - Querying the database.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Exceptions - Overview.php b/manual/docs/Basic Components - Exceptions - Overview.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Query - Aggregate functions.php b/manual/docs/Basic Components - Query - Aggregate functions.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Query - Bound parameters.php b/manual/docs/Basic Components - Query - Bound parameters.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Query - LIMIT and OFFSET - limiting the query results.php b/manual/docs/Basic Components - Query - LIMIT and OFFSET - limiting the query results.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Query - WHERE - setting query conditions.php b/manual/docs/Basic Components - Query - WHERE - setting query conditions.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - RawSql - Adding components.php b/manual/docs/Basic Components - RawSql - Adding components.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - RawSql - Introduction.php b/manual/docs/Basic Components - RawSql - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - RawSql - Method overloading.php b/manual/docs/Basic Components - RawSql - Method overloading.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - RawSql - Using SQL.php b/manual/docs/Basic Components - RawSql - Using SQL.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Record - Callbacks.php b/manual/docs/Basic Components - Record - Callbacks.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Record - Introduction.php b/manual/docs/Basic Components - Record - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Table - Getting relation objects.php b/manual/docs/Basic Components - Table - Getting relation objects.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Table - Getting table information.php b/manual/docs/Basic Components - Table - Getting table information.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Basic Components - Table - Introduction.php b/manual/docs/Basic Components - Table - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Introduction.php b/manual/docs/Configuration - Introduction.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Batch size.php b/manual/docs/Configuration - Setting attributes - Batch size.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Event listener.php b/manual/docs/Configuration - Setting attributes - Event listener.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Fetching strategy.php b/manual/docs/Configuration - Setting attributes - Fetching strategy.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Offset collection limit.php b/manual/docs/Configuration - Setting attributes - Offset collection limit.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Session lockmode.php b/manual/docs/Configuration - Setting attributes - Session lockmode.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Table creation.php b/manual/docs/Configuration - Setting attributes - Table creation.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Configuration - Setting attributes - Validation.php b/manual/docs/Configuration - Setting attributes - Validation.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Getting started - Compiling.php b/manual/docs/Getting started - Compiling.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Getting started - Record identifiers - Autoincremented.php b/manual/docs/Getting started - Record identifiers - Autoincremented.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Getting started - Record identifiers - Composite.php b/manual/docs/Getting started - Record identifiers - Composite.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Getting started - Record identifiers - Natural.php b/manual/docs/Getting started - Record identifiers - Natural.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Getting started - Record identifiers - Sequential.php b/manual/docs/Getting started - Record identifiers - Sequential.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Mapping object relations - Dealing with relations - Working with associations.php b/manual/docs/Mapping object relations - Dealing with relations - Working with associations.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Mapping object relations - Foreign key associations - One-to-Many, Many-to-One.php b/manual/docs/Mapping object relations - Foreign key associations - One-to-Many, Many-to-One.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Mapping object relations - Foreign key associations - Tree structure.php b/manual/docs/Mapping object relations - Foreign key associations - Tree structure.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Mapping object relations - Join table associations - One-to-Many, Many-to-One.php b/manual/docs/Mapping object relations - Join table associations - One-to-Many, Many-to-One.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Mapping object relations - Join table associations - One-to-One.php b/manual/docs/Mapping object relations - Join table associations - One-to-One.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Real world examples - Album lister.php b/manual/docs/Real world examples - Album lister.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Real world examples - Forum application.php b/manual/docs/Real world examples - Forum application.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Technology - Architecture.php b/manual/docs/Technology - Architecture.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Technology - Internal optimizations - DELETE.php b/manual/docs/Technology - Internal optimizations - DELETE.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Technology - Internal optimizations - INSERT.php b/manual/docs/Technology - Internal optimizations - INSERT.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Technology - Internal optimizations - UPDATE.php b/manual/docs/Technology - Internal optimizations - UPDATE.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Transactions - Locking strategies - Optimistic locking.php b/manual/docs/Transactions - Locking strategies - Optimistic locking.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Transactions - Locking strategies - Pessimistic locking.php b/manual/docs/Transactions - Locking strategies - Pessimistic locking.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Transactions - Nesting.php b/manual/docs/Transactions - Nesting.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Transactions - Unit of work.php b/manual/docs/Transactions - Unit of work.php new file mode 100644 index 000000000..e69de29bb