php - Doctrine Postgres boolean to string -
i trying add doctrine existing php application uses postgres. problem i'm having doctrine returns boolean (0,1) booleans in database whereas postgress returns string 't' or 'f'.
in application have lots of checks == 't' , =='f' don't want change code.
is there anyway force doctrine return string 't' , 'f'
thanks
i don't know dbal want if want raw values here. having written php dbal mysql/postgresql portability in 1999. whole point of dbal ensure portability across databases, , means boolean types need mapped true/false values in language of operation.
my recommendation different, , namely use dbal in parts of code works, , start porting other areas handle boolean values according basic truth value. when section works, move over. can on function function basis if want.
Comments
Post a Comment