src/Ringo/PhpRedmon/Model/Instance.php
public function addDatabase(Database $database)
    {
        if(!$this->getDatabases()->contains($database)) {
            $database->setId($this->getDatabases()->count());
            $database->setInstance($this);
            $this->getDatabases()->add($database);
        }
    }
public function addDatabase(Database $database)
    {
        if(!$this->getDatabases()->contains($database)) {
            $database->setId($this->getDatabases()->count());
            $database->setInstance($this);
            $this->getDatabases()->add($database);
        }
    }
public function addDatabase ( Database $ database ) { if ( ! $ this -> getDatabases ( ) -> contains ( $ database ) ) { $ database -> setId ( $ this -> getDatabases ( ) -> count ( ) ) ; $ database -> setInstance ( $ this ) ; $ this -> getDatabases ( ) -> add ( $ database ) ; } }
Add database to the list

@param Database $database
Add database to the list