# |
Jan 30th 2014, 19:48 |
DiegoHeras |
Thank you! |
# |
Jan 30th 2014, 19:47 |
BackEndCoder |
a saveAll would be for multible orders |
# |
Jan 30th 2014, 19:47 |
BackEndCoder |
you don't want to use a saveAll here, as you only have one order |
# |
Jan 30th 2014, 19:46 |
BackEndCoder |
i think you are confusing the saveAll |
# |
Jan 30th 2014, 19:46 |
BackEndCoder |
and $relationshipData |
# |
Jan 30th 2014, 19:45 |
BackEndCoder |
add to that paste with the debug output of $this->request->data |
# |
Jan 30th 2014, 19:45 |
todds |
DiegoHeras: Updated to demonstrate multi-select: http://bin.cakephp.org/view/2144345512 |
# |
Jan 30th 2014, 19:45 |
BackEndCoder |
ok |
# |
Jan 30th 2014, 19:45 |
chris______ |
http://bin.cakephp.org/view/1818424926 |
# |
Jan 30th 2014, 19:45 |
chris______ |
here is it |
# |
Jan 30th 2014, 19:43 |
BackEndCoder |
or your order will start to delete itself |
# |
Jan 30th 2014, 19:43 |
TeckniX |
1 Recipe has many ingredients |
# |
Jan 30th 2014, 19:43 |
BackEndCoder |
so its important for you, if you do an order update, to resave the whole order |
# |
Jan 30th 2014, 19:43 |
the-neon |
Time for me to ask a question because I'm not sure I'm approaching this the right away: I have Customer and Product and I want to save override Product pricing for each Customer. Should I follow a hasMany through a new model association or in a different way? |
# |
Jan 30th 2014, 19:43 |
todds |
diegoheras: http://bin.cakephp.org/view/2144345512 |
# |
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 |