1 month ago

Many to Many contains

Posted 1 month ago by fabuy

Hi, I have a relation many to many and need to know through the emission id if in the file table (many to many) the word "wait" exists in status from table files. I just need to know if there is a row with that property.

Table Draft (drafts)

  • id
  • emission_id
  • user_id

Table Files (files)

  • id
  • team_id
  • name
  • status

Table Pivote "draft_file"

  • id
  • draft_id
  • file_id

Please sign in or create an account to participate in this conversation.