# |
Jan 30th 2014, 19:43 |
TeckniX |
chris______: you can look in the book at the Recipe + ingredients tutorial |
# |
Jan 30th 2014, 19:43 |
BackEndCoder |
but but but, it will delete anything i don't mention |
# |
Jan 30th 2014, 19:42 |
BackEndCoder |
as long as i feed the articles model with the right array, it will save my assosition |
# |
Jan 30th 2014, 19:42 |
todds |
!bin |
# |
Jan 30th 2014, 19:42 |
BackEndCoder |
in my example.. and article habtm genres |
# |
Jan 30th 2014, 19:42 |
chris______ |
btw, in my code, Orders are called Quotation; and Items are called Products |
# |
Jan 30th 2014, 19:41 |
chris______ |
ok |
# |
Jan 30th 2014, 19:41 |
BackEndCoder |
and i will write it out for you again |
# |
Jan 30th 2014, 19:41 |
BackEndCoder |
so bin your code example of an array |
# |
Jan 30th 2014, 19:41 |
BackEndCoder |
i cant' show you an example of an array |
# |
Jan 30th 2014, 19:41 |
BackEndCoder |
and the data you push to the save |
# |
Jan 30th 2014, 19:41 |
BackEndCoder |
chris______, its going to be about your form |
# |
Jan 30th 2014, 19:39 |
DiegoHeras |
Hello, somone could send me a basic form using list box? |
# |
Jan 30th 2014, 19:38 |
chris______ |
yeah |
# |
Jan 30th 2014, 19:38 |
chris______ |
^ |
# |
Jan 30th 2014, 19:38 |
the-neon |
or one... from start to bottom to implement such relation |
# |
Jan 30th 2014, 19:38 |
the-neon |
I wish there were more hasmanythrough tutorials |
# |
Jan 30th 2014, 19:38 |
todds |
hahaha |
# |
Jan 30th 2014, 19:38 |
the-neon |
p |
# |
Jan 30th 2014, 19:37 |
the-neon |
i'd like a moment in the shed too |
# |
Jan 30th 2014, 19:37 |
todds |
backendcoder: Can I have the location and keys to this shed? |
# |
Jan 30th 2014, 19:35 |
chris______ |
Can I do that operation from the OrdersController right? |
# |
Jan 30th 2014, 19:35 |
BackEndCoder |
i will see if i can find something in my example shed |
# |
Jan 30th 2014, 19:35 |
chris______ |
is there any example I could read, i'm kinda new to cakephp |
# |
Jan 30th 2014, 19:34 |
chris______ |
yeah exactly |
# |
Jan 30th 2014, 19:34 |
BackEndCoder |
you are just making assosations |
# |
Jan 30th 2014, 19:34 |
BackEndCoder |
but you are not |
# |
Jan 30th 2014, 19:34 |
BackEndCoder |
it would work if you are saving orders and items |
# |
Jan 30th 2014, 19:34 |
BackEndCoder |
then use that id to push the join table |
# |
Jan 30th 2014, 19:34 |
BackEndCoder |
you would save the order id like normal with your habtm |
# |
Jan 30th 2014, 19:33 |
BackEndCoder |
the model exsists, but cake writes it itself |
# |
Jan 30th 2014, 19:33 |
BackEndCoder |
its already there. but cake will default it |
# |
Jan 30th 2014, 19:33 |
BackEndCoder |
yes |
# |
Jan 30th 2014, 19:33 |
chris______ |
? |
# |
Jan 30th 2014, 19:33 |
chris______ |
which would be the join table |
# |
Jan 30th 2014, 19:32 |
chris______ |
so I need an extra entity called OrderItems |
# |
Jan 30th 2014, 19:32 |
chris______ |
I see |
# |
Jan 30th 2014, 19:32 |
BackEndCoder |
OrderItems |
# |
Jan 30th 2014, 19:32 |
BackEndCoder |
job done |
# |
Jan 30th 2014, 19:31 |
BackEndCoder |
and save it |
# |
Jan 30th 2014, 19:31 |
BackEndCoder |
so bind it |