Show
Ignore:
Timestamp:
03/31/08 15:29:33 (9 months ago)
Author:
domluc
Message:

schema support for pgsql

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/experimental/schema/0.10/lib/Doctrine/Table.php

    r4087 r4162  
    155155    protected $_options      = array('name'           => null, 
    156156                                     'tableName'      => null, 
     157                                     'schemaName'     => null, 
    157158                                     'sequenceName'   => null, 
    158159                                     'inheritanceMap' => array(), 
     
    17401741        return $this->_options['name']; 
    17411742    } 
     1743     
     1744    /** 
     1745     * getSchemaName 
     1746     *  return the database schema of table 
     1747     * @return String 
     1748     */ 
     1749    public function getSchemaName() 
     1750    { 
     1751        return $this->_options['schemaName']; 
     1752    } 
     1753     
     1754    /** 
     1755     * setSchemaName 
     1756     * 
     1757     * @param string $schemaName 
     1758     * @return void 
     1759     */ 
     1760    public function setSchemaName($schemaName) 
     1761    { 
     1762        return $this->_options['schemaName']; 
     1763    } 
    17421764 
    17431765    /** 
     
    17481770    public function getTableName() 
    17491771    { 
    1750         return $this->_options['tableName']; 
     1772        if ($this->getSchemaName() ){ 
     1773            return $this->_options['schemaName'].'.'.$this->_options['tableName']; 
     1774        }else{ 
     1775            return $this->_options['tableName']; 
     1776        } 
    17511777    } 
    17521778