Starbugstone / SnowTricks

OpenClassrooms - Php Symfony App dev - project 6
0 stars 0 forks source link

After discussion, was recomended to use an array to store the images #56

Closed Starbugstone closed 5 years ago

Starbugstone commented 5 years ago

After a discussion on the discord, it was sujested to use an Array to store the uploaded images and have the 1st image as the default image. Pushing the default image to the first slot of the array on update.

Starbugstone commented 5 years ago

From the doctrine 2.9 refrence : https://www.doctrine-project.org/projects/doctrine-dbal/en/2.9/reference/types.html#json

You should never rely on the order of your JSON object keys, as some vendors like MySQL sort the keys of its native JSON type using an internal order which is also subject to change.

Starbugstone commented 5 years ago

Also, will not be able to use the image title in our search motor without a table

Starbugstone commented 5 years ago

Since we also use a variable to set as carousel site wide, a table is recommended. Closing and wontfix