Hi all,
I disagree with euromark, the difference between a null and an empty
string can be found by using the '===' operator. And if you want to know
whether a variable is defined you use PHP's isset() function.
Yours,
Maurits van der Schee
On 10/04/2010 03:35 PM, euromark wrote:
you are forgetting the most important factor
you are NOT working with JAVA or type safe languages
you are working with PHP and PHP cannot use NULL as value. NULL means:
not defined
as you can see with your above examples, the results are not what you
expected
its not the fault of CakePHP but PHP itself.
i hope that clarifies it
On 4 Okt., 15:26, lyba<[email protected]> wrote:
forgot an objection:
- when field contains reference to another object (object_id), it is
null when nonexistent or deleted
This is situation where above condition would need to be applied as
this is where null is appropriate value to work with
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en