Changeset 3437
- Timestamp:
- 02/10/07 10:04:27 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDoctrinePlugin/addon/sfDoctrineClassSchema.class.php
r3429 r3437 230 230 if ($this->isTable()) 231 231 { 232 if ($connection = $this->getTable()->getConnectionName())233 {234 $out[] = "const DATABASE_NAME = '$connection';";235 }236 237 232 $tableDef[] = "\$this->setTableName('{$this->getTableName()}');\n"; 238 233 } plugins/sfDoctrinePlugin/config/settings.yml
r2637 r3437 1 #all: 1 all: 2 orm: doctrine 2 3 # default_database: <your default connection here> plugins/sfDoctrinePlugin/lib/sfDoctrineDatabase.class.php
r3327 r3437 128 128 } 129 129 130 public function retrieveObjects($class, $peer_method = 'findAll')131 {132 if (!$peer_method)133 $peer_method = 'findAll';134 $table = sfDoctrine::getTable($class);135 return call_user_func(array($table, $peer_method));136 }137 138 130 }