Changeset 11272
- Timestamp:
- 09/01/08 09:00:41 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelPlugin/branches/migration/lib/propel/migration/model/sfPropelColumn.class.php
r11269 r11272 246 246 } 247 247 248 public function addTo($tableName, PropelPDO $con = null) 249 { 250 return $this->create(sfPropelTable::name($tableName), $con); 251 } 252 253 public function dropFrom($tableName, PropelPDO $con = null) 254 { 255 return $this->drop(sfPropelTable::name($tableName), $con); 256 } 257 248 258 public function asPropel(sfPropelTable $table) 249 259 { … … 325 335 } 326 336 327 throw new RuntimeException(sprintf('The method %s does not exist.', __METHOD__));337 throw new RuntimeException(sprintf('The method %s::%s() does not exist.', get_class($this), $method)); 328 338 } 329 339 } plugins/sfPropelPlugin/branches/migration/lib/propel/migration/model/sfPropelIndex.class.php
r11269 r11272 95 95 } 96 96 97 public function createOn($tableName, PropelPDO $con = null) 98 { 99 return $this->create(sfPropelTable::name($tableName), $con); 100 } 101 102 public function dropFrom($tableName, PropelPDO $con = null) 103 { 104 return $this->drop(sfPropelTable::name($tableName), $con); 105 } 106 97 107 public function asPropel(sfPropelTable $table) 98 108 {