mirror of
https://github.com/friendica/friendica
synced 2025-04-21 14:30:12 +00:00
Improve Base collection, model and repository
- Add collection pipeline methods - Add save collection method
This commit is contained in:
parent
559879f41f
commit
5ab898f67f
3 changed files with 90 additions and 3 deletions
|
@ -199,4 +199,12 @@ abstract class BaseRepository extends BaseFactory
|
|||
|
||||
return $models;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BaseCollection $collection
|
||||
*/
|
||||
public function saveCollection(BaseCollection $collection)
|
||||
{
|
||||
$collection->map([$this, 'update']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue