[PLUGINS][Favourite] Added onNoteDeleteRelated event
All favourite entities are now removed from note_favourite table when the respective note is deleted. Documented the favourNote and unfavourNote methods
This commit is contained in:
@@ -82,6 +82,11 @@ class NoteFavourite extends Entity
|
||||
// @codeCoverageIgnoreEnd
|
||||
// }}} Autocode
|
||||
|
||||
public static function getNoteFavourites(Note $note): array
|
||||
{
|
||||
return DB::findBy('note_favourite', ['note_id' => $note->getId()]);
|
||||
}
|
||||
|
||||
public static function getNoteFavouriteActors(Note $note): array
|
||||
{
|
||||
return DB::dql(
|
||||
|
||||
Reference in New Issue
Block a user