I use symfony 1.4, there is a method in the model:

public static function getByType($type_id) { $query = Doctrine::getTable('TypeEvent')->createQuery() ->select('*')->where('type_id=?'); return $query->fetchArray(array($type_id)); } 

Label structure:

 TypeEvent: columns: type_id: integer event_type: integer event_to: type: boolean default: 0 created_at: timestamp 

The problem is that I have data marked as event_to equal to 2, but outputted as marked with event_to equal to 1. All values ​​are valid except for this.

    0