Commit c2818dc8 authored by Jens Segers's avatar Jens Segers

Move protected function to the bottom

parent 9ca3f159
......@@ -437,24 +437,6 @@ class EmbedsMany extends Relation {
return count($ids);
}
/**
* Transform single ID, single Model or array of Models into an array of IDs
*
* @param mixed $ids
* @return array
*/
protected function getIdsArrayFrom($ids)
{
if (! is_array($ids)) $ids = array($ids);
foreach ($ids as &$id)
{
if ($id instanceof Model) $id = $id->getKey();
}
return $ids;
}
/**
* Delete alias.
*
......@@ -477,6 +459,24 @@ class EmbedsMany extends Relation {
return $this->save($model);
}
/**
* Transform single ID, single Model or array of Models into an array of IDs
*
* @param mixed $ids
* @return array
*/
protected function getIdsArrayFrom($ids)
{
if (! is_array($ids)) $ids = array($ids);
foreach ($ids as &$id)
{
if ($id instanceof Model) $id = $id->getKey();
}
return $ids;
}
/**
* Convert an array of embedded documents to a Collection.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment