From a94c714af1d54488536b12324d468293559d0cc6 Mon Sep 17 00:00:00 2001 From: runa Date: Tue, 31 Oct 2006 18:29:48 +0000 Subject: [PATCH] added getDatabases and addDatabase methods --- lib/Doctrine/Schema.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/Schema.php b/lib/Doctrine/Schema.php index 366192eb9..2a0aee464 100644 --- a/lib/Doctrine/Schema.php +++ b/lib/Doctrine/Schema.php @@ -46,10 +46,19 @@ class Doctrine_Schema extends Doctrine_Schema_Object implements Countable, Itera * @param Doctrine_Schema_Database database * @return * @access public */ - public function addDatabase( $database ) { - + public function addDatabase( Doctrine_Schema_Database $database ) { + $this->childs[] = $database; + } + + /** + * Return the childs for this schema + * + * @return array of Doctrine_Schema_Database + * + */ + public function getDatabases(){ + return $this->childs; } - /** * * @return