Message from @porco

Discord ID: 534965201338892298


2019-01-16 05:18:30 UTC  

Neat solution is a 1-N relation

2019-01-16 05:18:43 UTC  

Ugly solution is to have some break char and split the string

2019-01-16 05:18:46 UTC  

Turek szejker chciał ci dać piniądze? @sum

2019-01-16 05:19:06 UTC  

IN ENGLISH

2019-01-16 05:19:10 UTC  

Ta, mam pootwieranych w chuj kont bankowych, nawet proszą mnie bym wziął z nich pieniądze

2019-01-16 05:19:12 UTC  

I love how only php devs would ever consider putting arrays into databases

2019-01-16 05:19:15 UTC  

REEEEEEEEEEEEEEEEEEEE

2019-01-16 05:19:16 UTC  

Hey English here

2019-01-16 05:19:17 UTC  

Don't work @Matthew

2019-01-16 05:19:29 UTC  

*pulls the hammer*

2019-01-16 05:19:38 UTC  
2019-01-16 05:19:46 UTC  

Ok, done

2019-01-16 05:19:50 UTC  

Anyone else?

2019-01-16 05:19:53 UTC  

<:boomer:480046032546168863> 😎

2019-01-16 05:20:01 UTC  

Urself @porco

2019-01-16 05:20:08 UTC  
2019-01-16 05:20:10 UTC  

https://cdn.discordapp.com/attachments/531212403858472967/534965062947962891/unknown.png

2019-01-16 05:20:11 UTC  

Something like this

2019-01-16 05:20:16 UTC  

Ok, !sudoku

2019-01-16 05:20:20 UTC  

Trying to figure out how to write that in Doctrine

2019-01-16 05:20:43 UTC  

I don't know much about doctrine but maybe just Google "Doctrine one to many relations"

2019-01-16 05:21:04 UTC  

Though that covers only one array part of the entity

2019-01-16 05:21:12 UTC  

For the second one I have no fucking clue, might just leave it as a long ass string

2019-01-16 05:21:35 UTC  

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

2019-01-16 05:21:52 UTC  

But I might just go full lazy and make a textarea so user will write a longass string there

2019-01-16 05:21:55 UTC  

You should probably reconsider your database design if you run into this kind of problems. Make a ERD

2019-01-16 05:22:07 UTC  

>any planing whatsover

2019-01-16 05:22:09 UTC  

We do shit as we go

2019-01-16 05:22:10 UTC  

Then let someone validate your ERD

2019-01-16 05:22:26 UTC  

lel

2019-01-16 05:22:36 UTC  

That sure will be a great product

2019-01-16 05:22:42 UTC  

Not much to ERD about tho

2019-01-16 05:22:51 UTC  

Since right now I got 3 entities top

2019-01-16 05:22:58 UTC  

User, Recipe, Ingredient

2019-01-16 05:23:04 UTC  

If you are considering putting arrays in your database, you really should make an ERD

2019-01-16 05:23:15 UTC  

Believe me

2019-01-16 05:23:21 UTC  

1 user = many recipes
1 recipe = many ingredients

2019-01-16 05:23:29 UTC  

And that covers all my ERD needs

2019-01-16 05:23:45 UTC  

Ok pro

2019-01-16 05:23:46 UTC  

So yeah, guess One-To-Many should work