Completed
Push — master ( c84cb4...65d933 )
by Danail
12s
created
classes/Kohana/Jam/Association/Hasmany.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
 	/**
49 49
 	 * Initialize foreign_key, as, and polymorphic_key with default values
50 50
 	 *
51
-	 * @param   string  $model
52 51
 	 * @param   string  $name
53 52
 	 */
54 53
 	public function initialize(Jam_Meta $meta, $name)
@@ -174,7 +173,7 @@  discard block
 block discarded – undo
174 173
 	/**
175 174
 	 * Generate a query to delete associated models in the database
176 175
 	 * @param  Jam_Model $model
177
-	 * @return Database_Query
176
+	 * @return null|Jam_Query_Builder_Delete
178 177
 	 */
179 178
 	public function erase_query(Jam_Model $model)
180 179
 	{
@@ -197,7 +196,7 @@  discard block
 block discarded – undo
197 196
 	/**
198 197
 	 * Generate a query to remove models from this association (without deleting them)
199 198
 	 * @param  Jam_Model $model
200
-	 * @return Database_Query
199
+	 * @return null|Jam_Query_Builder_Update
201 200
 	 */
202 201
 	public function nullify_query(Jam_Model $model)
203 202
 	{
@@ -280,6 +279,10 @@  discard block
 block discarded – undo
280 279
 	}
281 280
 
282 281
 
282
+	/**
283
+	 * @param string|null $polymorphic_key
284
+	 * @param Jam_Validated|null $inverse_of
285
+	 */
283 286
 	protected function assign_item(Jam_Model $item, $foreign_key, $polymorphic_key, $inverse_of)
284 287
 	{
285 288
 		$item->{$this->foreign_key} = $foreign_key;
Please login to merge, or discard this patch.