AcmePizzaBundle icon indicating copy to clipboard operation
AcmePizzaBundle copied to clipboard

An Collateral Inner Aggregation to Collection Form Model

Open cordoval opened this issue 12 years ago • 5 comments

Hi @brikou hope you are doing good man, Iam in the need for something like this so i was wondering if you have any ideas for me to start PR-eing the repo here to support that: http://www.craftitonline.com/2011/07/pizzabundle-hacking-day/

Please let me know ASAP,

thanks!

cordoval avatar Jul 30 '11 08:07 cordoval

As I understand, you want to add a relationship of kind One Pizza Has Many Ingredients (is that true?)

I've already seen rendering of this kind of relationship here (http://knockoutjs.com/examples/contactsEditor.html), but my favorite js library to handle model is http://angularjs.org/

For me what is much important also important is the ability to edit an existing order, for that i've created a new branch (https://github.com/beberlei/AcmePizzaBundle/tree/new_factory) but the delete test is still failling.

Tell me if you want to help on new factory branch and what you think about these 2 js mvc library

thx ;)

brikou avatar Jul 30 '11 09:07 brikou

hi brikou

"As I understand, you want to add a relationship of kind One Pizza Has Many Ingredients (is that true?)" not many ingredients but to edit it right there on the create order form, so embedded form but instead of adding items i would just like to edit the item fields of the item that is added (in this case for pizza would be the pizza name and any other regular field that pizza has)

"I've already seen rendering of this kind of relationship here (http://knockoutjs.com/examples/contactsEditor.html), but my favorite js library to handle model is http://angularjs.org/"

i was not thinking of using javascript for this since it is just one entity that is added pizza inside the overall order which is the main entity that is created. I have heard of angularjs before, but not much. I say it is important the advance on js nowadays but this should be able to be done also without js right? This does not mean that I am rejecting the opportunity to work on this approach.

For the form to edit a created order I say we have common ground for our needs sort of.

I am new for js mvc libs but i can learn with a bit of guidance. Adn about the new_factory branch I am eager to help. It would be great if we can somehow tackle my use case if possible in some way or another. Please let me know. Thanks!

cordoval avatar Jul 30 '11 23:07 cordoval

also, I have noticed that you don't hang out on channel so perhaps give me your email or skype over pm please to more discussion?

cordoval avatar Jul 30 '11 23:07 cordoval

just realized that what i want in other words is to merge /acme-pizza/pizza/create & /acme-pizza/order/index

kind of like if were had toppings feature or something

interesting problem isn't it? but it is truly useful, and i don't want to edit several pizzas at the same time or add or nothing, just create a pizza from scratch every time. My app use is not with pizzas but rather with some reports that get persisted only at some point, and entity stores a collection OneToMany reports, that is why my use case.

cordoval avatar Jul 31 '11 00:07 cordoval

got it working on it

cordoval avatar Jul 31 '11 02:07 cordoval