public function Get(pdoMap_Mapping_Metadata_Table $table) { $structure = array('pk' => 0, 'fields' => array(), 'adapter' => $table->getType()); foreach ($table->getPhysicalFields() as $field) { if ($field->type == pdoMap_Mapping_Metadata_Field::FIELD_TYPE_PK) { $structure['pk'] = sizeof($structure['fields']); } $structure['fields'][] = $this->CreateFieldManager($field); } return $this->CreateTableManager($this->database, $table->name, $structure); }
public function __construct($name, pdoMap_Mapping_Metadata_Table $table) { parent::__construct('Could not find ' . $name . ' on adapter ' . $table->getType()); }