hypolite (hypolite@friendica.mrpetovan.com)'s status on Monday, 26-Dec-2022 23:20:52 CET
-
@heluecht The status values are Entity constants, the dismiss() is an Entity method (don't forget to call Repository->save() after!). I want to avoid get* and set* methods in the Entity classes. Just create methods for the use-cases we have. Do we dismiss reports? dismiss(). Do we reopen them if they were dismissed? reopen().
Querying a list of reports based on conditions is in the Repository since it's interacting with the database. You can create a joined query, then use Factory->createFromTableRow to obtain Report entities, and you can use the rest of the row fields for what you want.