propelorm/Propel — Issue #248: Impossible to set custom Formatter with select()
Author: gabrielpillet
Created: 2012-01-02 14:14:08+00:00
State: open

If I got a query with select :

```php
$query = MyQuery::create()
->setFormatter(new MySelectFormatter())
->select(array('ColumnOne', 'ColumnTwo')
->find()
;
```

The formatter is overriden is ModelCriteria::configureSelectColumns()

```php
// clear only the selectColumns, clearSelectColumns() clears asColumns too
$this->selectColumns = array();
```

I've had the need to use a specific formatter for two different purpose in two projects and the only choice I got is to hack the ModelCriteria and comment $this->selectColumns, I think the developper should be able to select any formatter anytime, and get errors if he set the wrong formatter by mistake (PropelObjectFormatter with a select for example).