diff options
Diffstat (limited to 'models/contentList.php')
-rw-r--r-- | models/contentList.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/models/contentList.php b/models/contentList.php new file mode 100644 index 0000000..017e261 --- /dev/null +++ b/models/contentList.php @@ -0,0 +1,17 @@ +<?php + +namespace app\models; + +class contentList extends \lithium\data\Model { + public function update() + { + + } + + public function add($entity, $data) + { + $updateData = array('$push' => array('' + $conditions = array('_id' => $user['_id']); + $result = User::update($updateData, $conditions, array('atomic' => false)); + } +}
\ No newline at end of file |