/** * Transform a database columnname to a property * * @param string $columnName the name of the column * @return string the property name * @todo migrate existing database columns to the correct names * to be able to drop this direct mapping */ public function columnToProperty($columnName) { if ($columnName === 'category') { return 'name'; } elseif ($columnName === 'uid') { return 'owner'; } else { return parent::columnToProperty($columnName); } }
/** * Transform a database column name to a property * @param string $columnName the name of the column * @return string the property name */ public function columnToProperty($columnName) { if ($columnName === 'fileid') { $property = 'fileId'; } else { $property = parent::columnToProperty($columnName); } return $property; }