Commit a94c714a authored by runa's avatar runa

added getDatabases and addDatabase methods

parent 52aa5845
......@@ -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
......
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