Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit be3aa10

Browse files
author
Nik Barham
committed
Adding a few more PHPDoc blocks
1 parent 06d076c commit be3aa10

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/Orm/Data.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ public function __clone()
7777
$this->__external = array();
7878
}
7979

80-
// Create a open cloned copy of this object, ready to reinsert as a new row.
80+
/**
81+
* Create a open cloned copy of this object, ready to reinsert as a new row.
82+
*
83+
* @param bool $clone_M2M_properties Clone M2M properties as well
84+
* @return self
85+
*/
8186
public function duplicate($clone_M2M_properties = false)
8287
{
8388
$clone = clone $this;
@@ -94,13 +99,24 @@ public function duplicate($clone_M2M_properties = false)
9499

95100
return $clone;
96101
}
102+
103+
/**
104+
* Lock id of the object. Once locked, this data object will always represent the id specified.
105+
*
106+
* @return self
107+
*/
97108

98109
public function lock()
99110
{
100111
$this->__locked = true;
101112
return $this;
102113
}
103114

115+
/**
116+
* Mark data object for deletion when commited
117+
*
118+
* @return self
119+
*/
104120
public function delete()
105121
{
106122
if ($this->__new) throw new Exception\Model('MODEL_DATA:CANNOT_DELETE_UNCOMMITED_DATA');
@@ -259,7 +275,7 @@ public static function groupJoin(Collection $collection, $var, $where = [])
259275
}
260276

261277
return $results;
262-
}
278+
}
263279
}
264280

265281
public static function groupJoinCount(Collection $collection, $var, $where = [])

0 commit comments

Comments
 (0)