public function __construct(array $array, Am_Table_WithData $table) { parent::__construct($array); $this->config_key = $table->getCustomFieldsConfigKey(); $this->table = $table->getName(true); $this->pk = $table->getKeyField(); }