bartle
  • Login
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

hypolite (hypolite@friendica.mrpetovan.com)'s status on Monday, 26-Dec-2022 23:20:52 CET

  1. hypolite (hypolite@friendica.mrpetovan.com)'s status on Monday, 26-Dec-2022 23:20:52 CET hypolite hypolite
    in reply to
    • Michael Vogel
    @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.
    In conversation Monday, 26-Dec-2022 23:20:52 CET from bartle.doomicile.de permalink

Feeds

  • Activity Streams
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

bartle is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All bartle content and data are available under the Creative Commons Attribution 3.0 license.