HCoop
/
clinton
/
lisp-on-lines.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots of great changes to update along with maxwell 0.8
[clinton/lisp-on-lines.git]
/
src
/
mewa
/
slot-presentations.lisp
diff --git
a/src/mewa/slot-presentations.lisp
b/src/mewa/slot-presentations.lisp
index
f501b71
..
db5de2e
100644
(file)
--- a/
src/mewa/slot-presentations.lisp
+++ b/
src/mewa/slot-presentations.lisp
@@
-170,7
+170,12
@@
When T, only the default value for primary keys and the joins are updated."))
(defaction add-to-has-many ((slot has-many-slot-presentation) instance)
(defaction add-to-has-many ((slot has-many-slot-presentation) instance)
+ ;; if the instance is not stored we must make sure to mark it stored now!
+ (unless (mewa::instance-is-stored-p instance)
+ (setf (mewa::modifiedp (parent self)) t))
+ ;; sync up the instance
(mewa:ensure-instance-sync (parent slot))
(mewa:ensure-instance-sync (parent slot))
+
(multiple-value-bindf (class home foreign)
(meta-model:explode-has-many instance (slot-name slot))
(let ((new (make-instance class)))
(multiple-value-bindf (class home foreign)
(meta-model:explode-has-many instance (slot-name slot))
(let ((new (make-instance class)))