With Doctrine DBAL Querybuilder, i can easily copy a column into another one:
$qb->update('table')->set('col_1', 'col_2');
But as both columns are boolean(resp. tinyint), how can i just invert col_2 while copying it?
With Doctrine DBAL Querybuilder, i can easily copy a column into another one:
$qb->update('table')->set('col_1', 'col_2');
But as both columns are boolean(resp. tinyint), how can i just invert col_2 while copying it?
Copyright © 2021 Jogjafile Inc.