Skip to main content
2 of 2
edited body; edited tags
7ochem
  • 7.6k
  • 14
  • 52
  • 80

How to get column such as that By collection

I want to get a column like (datetime % 3600) / 60 as minute,But I use

$collection->columns('(datetime%3600)/60 as minute')

But I got SQL is `main_table`.`datetime%3600/60` AS `minute`

How I fixed It?