Re: Mapping Booleans as enum('false','true') in MySQL

2011-08-03 Thread euromark
well, of course you can name it whatever you like :) deleted, removed, not_available_anymore, ... but yes, thats how you would do it in cake On 3 Aug., 18:23, Peter Meth wrote: > I am new to CakePHP and I have a lot of existing mysql tables that > have a field is_active that I use for soft-delete

Mapping Booleans as enum('false','true') in MySQL

2011-08-03 Thread Peter Meth
I am new to CakePHP and I have a lot of existing mysql tables that have a field is_active that I use for soft-deletes. The field is an enum('false','true'). I wanted to know if I can somehow take advantage of Cake's soft-delete functionality without changing my tables. >From what I read Cake does