Esempio n. 1
0
 /**
  * Generate constraints for foreign keys for this create table statement
  * @return string
  */
 protected function _getConstraints($pre = '')
 {
     return $this->_tab . trim(ltrim(parent::_getConstraints('ADD '), ','));
 }
Esempio n. 2
0
 /**
  * Parses an CREATE DDL object into its string query
  * 
  * @return string The DDL CREATE query statement string
  */
 public function create()
 {
     $dialect = new Standard\Create(array('sql' => $this->_sql));
     return $dialect->getStatement();
 }