Changeset 4162 for branches/experimental/schema
- Timestamp:
- 03/31/08 15:29:33 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/experimental/schema/0.10/lib/Doctrine/Table.php
r4087 r4162 155 155 protected $_options = array('name' => null, 156 156 'tableName' => null, 157 'schemaName' => null, 157 158 'sequenceName' => null, 158 159 'inheritanceMap' => array(), … … 1740 1741 return $this->_options['name']; 1741 1742 } 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 } 1742 1764 1743 1765 /** … … 1748 1770 public function getTableName() 1749 1771 { 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 } 1751 1777 } 1752 1778