This commit is contained in:
parent
2dd3e9743a
commit
85a799eaaa
@ -1263,6 +1263,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
|||||||
/**
|
/**
|
||||||
* countRelated
|
* countRelated
|
||||||
*
|
*
|
||||||
|
* @param string $name the name of the related component
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public function countRelated($name) {
|
public function countRelated($name) {
|
||||||
|
@ -45,7 +45,7 @@ class Doctrine_ValueHolder extends Doctrine_Access implements Countable {
|
|||||||
|
|
||||||
public function get($name) {
|
public function get($name) {
|
||||||
if( ! isset($this->data[$name]))
|
if( ! isset($this->data[$name]))
|
||||||
throw new InvalidKeyException("Unknown property $name.");
|
throw new Doctrine_Exception("Unknown property $name.");
|
||||||
|
|
||||||
return $this->data[$name];
|
return $this->data[$name];
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once("path-to-doctrine/Doctrine.class.php");
|
require_once("path-to-doctrine/Doctrine.php");
|
||||||
|
|
||||||
// autoloading objects
|
// autoloading objects
|
||||||
|
|
||||||
@ -7,7 +7,8 @@ function __autoload($class) {
|
|||||||
Doctrine::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'));
|
||||||
?>
|
?>
|
||||||
|
@ -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 \>
|
<br \><br \>
|
||||||
In the beginning of your every script you can put:
|
You need a SVN(Subversion) client for downloading Doctrine.
|
||||||
|
1
manual/docs/Mapping object relations - Introduction.php
Normal file
1
manual/docs/Mapping object relations - Introduction.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
In Doctrine all record relations are being set with hasMany, hasOne, ownsMany and ownsOne methods.
|
@ -275,6 +275,10 @@ $menu = array("Getting started" =>
|
|||||||
"OffsetIterator")
|
"OffsetIterator")
|
||||||
*/
|
*/
|
||||||
),
|
),
|
||||||
|
"DQL (Doctrine Query Language)" =>
|
||||||
|
array(
|
||||||
|
|
||||||
|
),
|
||||||
"Transactions" => array(
|
"Transactions" => array(
|
||||||
"Introduction",
|
"Introduction",
|
||||||
"Unit of work",
|
"Unit of work",
|
||||||
|
Loading…
Reference in New Issue
Block a user