mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-14 16:28:41 +00:00
fix tests
This commit is contained in:
parent
97f9c611da
commit
d0b2ecaa4b
|
|
@ -201,6 +201,17 @@ class MediaMapper extends DataMapperFactory
|
||||||
->where('name', $name);
|
->where('name', $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check how many references exist to a certain media id.
|
||||||
|
*
|
||||||
|
* This can be helpful to check if a media element can be deleted without damaging other references.
|
||||||
|
*
|
||||||
|
* @param int $id Media id to check references to
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public static function countInternalReferences(int $id) : int
|
public static function countInternalReferences(int $id) : int
|
||||||
{
|
{
|
||||||
$references = self::count()
|
$references = self::count()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user