Docs updated (added also empty files for missing docs/codes)
This commit is contained in:
parent
186b4465ad
commit
9f03f21df7
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$coll = new Doctrine_Collection('User');
|
||||
|
||||
$coll[0]->name = 'Arnold';
|
||||
|
||||
$coll[1]->name = 'Somebody';
|
||||
|
||||
$coll->save();
|
||||
?>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$q = new Doctrine_Query();
|
||||
|
||||
$q->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();
|
||||
?>
|
5
manual/codes/Configuration - Introduction.php
Normal file
5
manual/codes/Configuration - Introduction.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$manager = Doctrine_Manager::getInstance();
|
||||
|
||||
$manager->setAttribute(Doctrine::ATTR_LISTENER, new MyListener());
|
||||
?>
|
20
manual/codes/Configuration - Levels of configuration.php
Normal file
20
manual/codes/Configuration - Levels of configuration.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// setting a global level attribute
|
||||
$manager = Doctrine_Manager::getInstance();
|
||||
|
||||
$manager->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());
|
||||
?>
|
7
manual/codes/Getting started - Compiling.php
Normal file
7
manual/codes/Getting started - Compiling.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
Doctrine::compile();
|
||||
|
||||
// on some other script:
|
||||
|
||||
require_once("path_to_doctrine/Doctrine.compiled.php");
|
||||
?>
|
0
manual/codes/Getting started - Requirements.php
Normal file
0
manual/codes/Getting started - Requirements.php
Normal file
0
manual/codes/Real world examples - Album lister.php
Normal file
0
manual/codes/Real world examples - Album lister.php
Normal file
0
manual/codes/Technology - Architecture.php
Normal file
0
manual/codes/Technology - Architecture.php
Normal file
0
manual/codes/Technology - Design patterns used.php
Normal file
0
manual/codes/Technology - Design patterns used.php
Normal file
0
manual/codes/Technology - Speed.php
Normal file
0
manual/codes/Technology - Speed.php
Normal file
0
manual/docs/Configuration - Introduction.php
Normal file
0
manual/docs/Configuration - Introduction.php
Normal file
0
manual/docs/Getting started - Compiling.php
Normal file
0
manual/docs/Getting started - Compiling.php
Normal file
0
manual/docs/Real world examples - Album lister.php
Normal file
0
manual/docs/Real world examples - Album lister.php
Normal file
0
manual/docs/Technology - Architecture.php
Normal file
0
manual/docs/Technology - Architecture.php
Normal file
0
manual/docs/Transactions - Nesting.php
Normal file
0
manual/docs/Transactions - Nesting.php
Normal file
0
manual/docs/Transactions - Unit of work.php
Normal file
0
manual/docs/Transactions - Unit of work.php
Normal file
Loading…
Reference in New Issue
Block a user