Detect multiple set on hasMany before hooks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Firyo
    Senior Member
    • Jun 2022
    • 134

    Detect multiple set on hasMany before hooks

    Hi everyone,

    I'm currently looking for a way to edit the $options array that we get from the differents entities hooks.
    But I want that only in the case of a multiple assignement (in POST) from the API (with these king of parameters).Click image for larger version

Name:	image.png
Views:	174
Size:	9.2 KB
ID:	82232
    The thing is I would like to make things in my backend with the context of these n ids and not individualy like the beforeRelate / afterRelate hooks.


    PS : Feel free to ask questions if you need.

    Kind regards,
    Firyo.
  • Firyo
    Senior Member
    • Jun 2022
    • 134

    #2
    Ok I found something that gives me the same result so we good I guess

    Comment

    Working...