Message from @porco
Discord ID: 534965089426604063
I got some from USA
Where they wanted me to smuggle some shit or something?
Neat solution is a 1-N relation
Ugly solution is to have some break char and split the string
IN ENGLISH
Ta, mam pootwieranych w chuj kont bankowych, nawet proszą mnie bym wziął z nich pieniądze
I love how only php devs would ever consider putting arrays into databases
REEEEEEEEEEEEEEEEEEEE
Hey English here
*pulls the hammer*
Ok, done
Anyone else?
<:boomer:480046032546168863> 😎
Something like this
Trying to figure out how to write that in Doctrine
I don't know much about doctrine but maybe just Google "Doctrine one to many relations"
Though that covers only one array part of the entity
For the second one I have no fucking clue, might just leave it as a long ass string
Since I want user to write a step by step guide, thought neat way of doing that would be by making each step an array member
But I might just go full lazy and make a textarea so user will write a longass string there
You should probably reconsider your database design if you run into this kind of problems. Make a ERD
>any planing whatsover
We do shit as we go
Then let someone validate your ERD
lel
That sure will be a great product
Not much to ERD about tho
Since right now I got 3 entities top
User, Recipe, Ingredient
If you are considering putting arrays in your database, you really should make an ERD
Believe me
1 user = many recipes
1 recipe = many ingredients
And that covers all my ERD needs