Index: trunk/extensions/Wikidata/OmegaWiki/DefinedMeaningModel.php |
— | — | @@ -81,6 +81,7 @@ |
82 | 82 | $expression=$this->dupDefiningExpression(); |
83 | 83 | # to make the expression really work, we may need to call |
84 | 84 | # more here? |
| 85 | + $expression->createNewInDatabase(); |
85 | 86 | |
86 | 87 | # shouldn't this stuff be protected? |
87 | 88 | $expressionId=$expression->id; |
Index: trunk/extensions/Wikidata/OmegaWiki/SaveDM.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | /* insert code here */ |
49 | 49 | |
50 | | -$model=getDM(663672,"uw"); |
| 50 | +$model=getDM(663674,"tt"); |
51 | 51 | |
52 | 52 | $record=$model->getRecord(); |
53 | 53 | echo $record; |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | |
61 | 61 | echo "id: $id, spelling:$spelling, language:$language"; |
62 | 62 | |
63 | | -saveDM($model,"tt"); |
| 63 | +saveDM($model,"uw"); |
64 | 64 | |
65 | 65 | $endTime = time(); |
66 | 66 | echo("\n\nTime elapsed: " . durationToString($endTime - $beginTime)); |