On Thu, Mar 4, 2010 at 12:05 PM, Alayn Gortazar <al...@irontec.com> wrote:
> El jue, 04-03-2010 a las 11:43 +0100, Giorgio Sironi escribió: > >> I guess it has to do with the way it is used in Zend_Form... usually > > you pass scalar values in a form. > > I'll take advantage of this thread and ask: > How do you test if an object is empty or not?? > Actually empty object should not exist as testing for one would break encapsulation. An "empty" object is actually a Null Object pattern: http://en.wikipedia.org/wiki/Null_Object_pattern -- Giorgio Sironi Piccolo Principe & Web Engineer http://giorgiosironi.blogspot.com http://twitter.com/giorgiosironi