Commit: dda3d2d306e4f2ab8b57bddd4041b5cb6e10de29

Author: alkemann | Date: 2009-11-17 17:16:35 +0100
Documentation for `Paste` createView();
diff --git a/models/Paste.php b/models/Paste.php index 543f6a8..40f21f9 100644 --- a/models/Paste.php +++ b/models/Paste.php @@ -82,6 +82,14 @@ class Paste extends \lithium\data\Model { ) ); + /** + * Used to create and then save the design view 'latest' to couch, ie: + * {{{ + * Paste::createView()->save(); + * }}} + * + * @return Document + */ public static function createView() { return parent::create(static::$_views['latest']); } diff --git a/tests/integration/PasteTest.php b/tests/integration/PasteTest.php index a766fa7..b37e981 100644 --- a/tests/integration/PasteTest.php +++ b/tests/integration/PasteTest.php @@ -135,7 +135,7 @@ class PasteTest extends \lithium\test\Unit { } protected function _taskPutView() { - $paste = MockPaste::createView()->save(); + MockPaste::createView()->save(); } public function testSave() {