Commit 85a799ea authored by zYne's avatar zYne

--no commit message

--no commit message
parent 2dd3e974
......@@ -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) {
......
......@@ -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];
}
......
<?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'));
?>
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.
In Doctrine all record relations are being set with hasMany, hasOne, ownsMany and ownsOne methods.
......@@ -275,6 +275,10 @@ $menu = array("Getting started" =>
"OffsetIterator")
*/
),
"DQL (Doctrine Query Language)" =>
array(
),
"Transactions" => array(
"Introduction",
"Unit of work",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment