Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An Collateral Inner Aggregation to Collection Form Model #31

Open
cordoval opened this issue Jul 30, 2011 · 5 comments
Open

An Collateral Inner Aggregation to Collection Form Model #31

cordoval opened this issue Jul 30, 2011 · 5 comments

Comments

@cordoval
Copy link
Contributor

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!

@brikou
Copy link
Collaborator

brikou commented Jul 30, 2011

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 ;)

@cordoval
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

got it working on it

@cordoval cordoval reopened this Aug 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants