1
0
mirror of synced 2024-12-13 14:56:01 +03:00
This commit is contained in:
zYne 2006-08-29 20:37:55 +00:00
parent 2dd3e9743a
commit 85a799eaaa
6 changed files with 14 additions and 6 deletions

View File

@ -1263,6 +1263,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
/**
* countRelated
*
* @param string $name the name of the related component
* @return integer
*/
public function countRelated($name) {

View File

@ -45,7 +45,7 @@ class Doctrine_ValueHolder extends Doctrine_Access implements Countable {
public function get($name) {
if( ! isset($this->data[$name]))
throw new InvalidKeyException("Unknown property $name.");
throw new Doctrine_Exception("Unknown property $name.");
return $this->data[$name];
}

View File

@ -1,5 +1,5 @@
<?php
require_once("path-to-doctrine/Doctrine.class.php");
require_once("path-to-doctrine/Doctrine.php");
// autoloading objects
@ -7,7 +7,8 @@ function __autoload($class) {
Doctrine::autoload($class);
}
// loading all components
// registering an autoload function, useful when multiple
// frameworks are using __autoload()
Doctrine::loadAll();
spl_autoload_register(array('Doctrine', 'autoload'));
?>

View File

@ -1,3 +1,4 @@
The installation of doctrine is very easy. Just extract doctrine.*.zip into your www folder.
The installation of doctrine is very easy. Just get the latest revision of Doctrine from
http://doctrine.pengus.net/svn/trunk.
<br \><br \>
In the beginning of your every script you can put:
You need a SVN(Subversion) client for downloading Doctrine.

View File

@ -0,0 +1 @@
In Doctrine all record relations are being set with hasMany, hasOne, ownsMany and ownsOne methods.

View File

@ -275,6 +275,10 @@ $menu = array("Getting started" =>
"OffsetIterator")
*/
),
"DQL (Doctrine Query Language)" =>
array(
),
"Transactions" => array(
"Introduction",
"Unit of work",