Module: DataMapper
- Defined in:
- lib/dm-adapter-simpledb/sdb_array.rb,
lib/dm-adapter-simpledb/adapters/simpledb_adapter.rb,
lib/dm-adapter-simpledb/migrations/simpledb_adapter.rb
Overview
NOTE: Do not try to clear SdbArray properties by assigning nil. Instead, assign an empty array:
resource.array_prop = []
resource.save
The reason has to do with DataMapper’s lazy-load handling - a lazy-loaded property has a value of nil until it is loaded. If you assign nil, DM thinks that
Defined Under Namespace
Modules: Adapters, Migrations, Types