Re: Cake loads FALSE values as (empty)

2011-02-03 Thread Ernesto
@ Miles J

i'm masochist ;-D

usually i try to strictly respect cake conventions.

this is the first time i notice this behavior.
cake always worked flawlessly with his  empty false values

On 2 Feb, 19:19, Miles J mileswjohn...@gmail.com wrote:
 Well, why are you even using 2.0?

 On Feb 2, 8:59 am, euromark dereurom...@googlemail.com wrote:



  nope, tilen

  its tinyint(1) !!!
  ideally unsigned (cant be negative anyway)
  thats what booleans are stored as

  tinyint(2) is for pseudo enum fields or small integer values

  On 2 Feb., 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:

   for values like this, cake uses in database tinyint(2) fieldtype, where 1
   means true and 0 means false (compatible with form helper)
   --
   Lep pozdrav, Tilen Majerlehttp://majerle.eu

   2011/2/2 Ernesto e.fanz...@gmail.com

Hello.

i noticed that Cake loads boolean values stored in DB as  (empty
value) instead of 0 (zero).

is that intended?
is there a way to avoid this?

i'm using 2.0-dev

--
Our newest site for the community: CakePHP Video Tutorials
   http://tv.cakephp.org
Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
others with their CakePHP related questions.

To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.comcake-php%2Bunsubscr...@googlegroups.c
 omFor more options, visit this group at
   http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cake loads FALSE values as (empty)

2011-02-02 Thread Ernesto
Hello.

i noticed that Cake loads boolean values stored in DB as  (empty
value) instead of 0 (zero).

is that intended?
is there a way to avoid this?

i'm using 2.0-dev

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread Tilen Majerle
for values like this, cake uses in database tinyint(2) fieldtype, where 1
means true and 0 means false (compatible with form helper)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/2/2 Ernesto e.fanz...@gmail.com

 Hello.

 i noticed that Cake loads boolean values stored in DB as  (empty
 value) instead of 0 (zero).

 is that intended?
 is there a way to avoid this?

 i'm using 2.0-dev

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread Ernesto
uhm...
that looks like a workaround to me...

http://book.cakephp.org/view/743/MySQL

A tinyint(1) field is considered a boolean by CakePHP.

so why Cake is ignoring the FALSE (zero) value?

On 2 Feb, 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:
 for values like this, cake uses in database tinyint(2) fieldtype, where 1
 means true and 0 means false (compatible with form helper)
 --
 Lep pozdrav, Tilen Majerlehttp://majerle.eu

 2011/2/2 Ernesto e.fanz...@gmail.com



  Hello.

  i noticed that Cake loads boolean values stored in DB as  (empty
  value) instead of 0 (zero).

  is that intended?
  is there a way to avoid this?

  i'm using 2.0-dev

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2Bunsubscribe@googlegroups.c­omFor
   more options, visit this group at
 http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread euromark
nope, tilen

its tinyint(1) !!!
ideally unsigned (cant be negative anyway)
thats what booleans are stored as

tinyint(2) is for pseudo enum fields or small integer values


On 2 Feb., 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:
 for values like this, cake uses in database tinyint(2) fieldtype, where 1
 means true and 0 means false (compatible with form helper)
 --
 Lep pozdrav, Tilen Majerlehttp://majerle.eu

 2011/2/2 Ernesto e.fanz...@gmail.com







  Hello.

  i noticed that Cake loads boolean values stored in DB as  (empty
  value) instead of 0 (zero).

  is that intended?
  is there a way to avoid this?

  i'm using 2.0-dev

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2Bunsubscribe@googlegroups.c 
  omFor more options, visit this group at
 http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread Miles J
Well, why are you even using 2.0?

On Feb 2, 8:59 am, euromark dereurom...@googlemail.com wrote:
 nope, tilen

 its tinyint(1) !!!
 ideally unsigned (cant be negative anyway)
 thats what booleans are stored as

 tinyint(2) is for pseudo enum fields or small integer values

 On 2 Feb., 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:

  for values like this, cake uses in database tinyint(2) fieldtype, where 1
  means true and 0 means false (compatible with form helper)
  --
  Lep pozdrav, Tilen Majerlehttp://majerle.eu

  2011/2/2 Ernesto e.fanz...@gmail.com

   Hello.

   i noticed that Cake loads boolean values stored in DB as  (empty
   value) instead of 0 (zero).

   is that intended?
   is there a way to avoid this?

   i'm using 2.0-dev

   --
   Our newest site for the community: CakePHP Video Tutorials
  http://tv.cakephp.org
   Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
   others with their CakePHP related questions.

   To unsubscribe from this group, send email to
   cake-php+unsubscr...@googlegroups.comcake-php%2Bunsubscr...@googlegroups.c
omFor more options, visit this group at
  http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread Tilen Majerle
euromarket...yes you are right, i made a mistake because i was think for 2
possible values, that's was a reason, why i put 2 in brackets instead of
1
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/2/2 Miles J mileswjohn...@gmail.com

 Well, why are you even using 2.0?

 On Feb 2, 8:59 am, euromark dereurom...@googlemail.com wrote:
  nope, tilen
 
  its tinyint(1) !!!
  ideally unsigned (cant be negative anyway)
  thats what booleans are stored as
 
  tinyint(2) is for pseudo enum fields or small integer values
 
  On 2 Feb., 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:
 
   for values like this, cake uses in database tinyint(2) fieldtype, where
 1
   means true and 0 means false (compatible with form helper)
   --
   Lep pozdrav, Tilen Majerlehttp://majerle.eu
 
   2011/2/2 Ernesto e.fanz...@gmail.com
 
Hello.
 
i noticed that Cake loads boolean values stored in DB as  (empty
value) instead of 0 (zero).
 
is that intended?
is there a way to avoid this?
 
i'm using 2.0-dev
 
--
Our newest site for the community: CakePHP Video Tutorials
   http://tv.cakephp.org
Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
others with their CakePHP related questions.
 
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2Bunsubscr...@googlegroups.c omFor more options, visit this
 group at
   http://groups.google.com/group/cake-php

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread euromark
happens

and its euromark - i am not for sale ;)


On 2 Feb., 21:42, Tilen Majerle tilen.maje...@gmail.com wrote:
 euromarket...yes you are right, i made a mistake because i was think for 2
 possible values, that's was a reason, why i put 2 in brackets instead of
 1
 --
 Lep pozdrav, Tilen Majerlehttp://majerle.eu

 2011/2/2 Miles J mileswjohn...@gmail.com







  Well, why are you even using 2.0?

  On Feb 2, 8:59 am, euromark dereurom...@googlemail.com wrote:
   nope, tilen

   its tinyint(1) !!!
   ideally unsigned (cant be negative anyway)
   thats what booleans are stored as

   tinyint(2) is for pseudo enum fields or small integer values

   On 2 Feb., 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:

for values like this, cake uses in database tinyint(2) fieldtype, where
  1
means true and 0 means false (compatible with form helper)
--
Lep pozdrav, Tilen Majerlehttp://majerle.eu

2011/2/2 Ernesto e.fanz...@gmail.com

 Hello.

 i noticed that Cake loads boolean values stored in DB as  (empty
 value) instead of 0 (zero).

 is that intended?
 is there a way to avoid this?

 i'm using 2.0-dev

 --
 Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
 Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
 others with their CakePHP related questions.

 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2Bunsubscribe@googlegroups.c
  om
  cake-php%2Bunsubscr...@googlegroups.c omFor more options, visit this
  group at
http://groups.google.com/group/cake-php

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2Bunsubscribe@googlegroups.c 
  omFor more options, visit this group at
 http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake loads FALSE values as (empty)

2011-02-02 Thread Tilen Majerle
hahah...i failed...sorry :D
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/2/2 euromark dereurom...@googlemail.com

 happens

 and its euromark - i am not for sale ;)


 On 2 Feb., 21:42, Tilen Majerle tilen.maje...@gmail.com wrote:
  euromarket...yes you are right, i made a mistake because i was think for
 2
  possible values, that's was a reason, why i put 2 in brackets instead
 of
  1
  --
  Lep pozdrav, Tilen Majerlehttp://majerle.eu
 
  2011/2/2 Miles J mileswjohn...@gmail.com
 
 
 
 
 
 
 
   Well, why are you even using 2.0?
 
   On Feb 2, 8:59 am, euromark dereurom...@googlemail.com wrote:
nope, tilen
 
its tinyint(1) !!!
ideally unsigned (cant be negative anyway)
thats what booleans are stored as
 
tinyint(2) is for pseudo enum fields or small integer values
 
On 2 Feb., 15:05, Tilen Majerle tilen.maje...@gmail.com wrote:
 
 for values like this, cake uses in database tinyint(2) fieldtype,
 where
   1
 means true and 0 means false (compatible with form helper)
 --
 Lep pozdrav, Tilen Majerlehttp://majerle.eu
 
 2011/2/2 Ernesto e.fanz...@gmail.com
 
  Hello.
 
  i noticed that Cake loads boolean values stored in DB as 
 (empty
  value) instead of 0 (zero).
 
  is that intended?
  is there a way to avoid this?
 
  i'm using 2.0-dev
 
  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions
 sitehttp://ask.cakephp.organdhelp
  others with their CakePHP related questions.
 
  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2Bunsubscribe@googlegroups.c om
   cake-php%2Bunsubscr...@googlegroups.c omFor more options, visit this
   group at
 http://groups.google.com/group/cake-php
 
   --
   Our newest site for the community: CakePHP Video Tutorials
  http://tv.cakephp.org
   Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
   others with their CakePHP related questions.
 
   To unsubscribe from this group, send email to
   cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2Bunsubscribe@googlegroups.c omFor more options, visit this
 group at
  http://groups.google.com/group/cake-php

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php