otto wrote
How do we fix this? Is there a hook where we should be
specifying
this? Or is there a fundamental way of working with Magritte-Seaside
where it will write nils and we have to manage that on our domain
object?
Hi Otto
From what I could see it looks like a blank field will
be interpreted as a
nil, which means that the domain would need to check for nil in
accessors
and return a default.
Another option which I tried is to rather change MAMemento>>push: to make
use of the #default: magritte description.
I.e. when creating your MAStringDescription send the /#default: ''/ message
then change MAMemento as per below so that if the memento cached value is
nil, rather return the default value for the description (which by default
is nil, MADescription class>>defaultDefault)
Your mileage may vary but it looks pretty safe to use...
--
View this message in context:
http://forum.world.st/MAStringReader-and-nil-tp4747977p4748098.html
Sent from the Magritte, Pier and Related Tools mailing list archive at
Nabble.com.