[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-21 Thread tonystamp
So is nobody developing applications like this anymore? If not i'd love to know the better way that everyone else is doing it. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/zf2-one-many-to-many-relationships-tp4659910p4660085.html Sent from the Zend Frame

Re: [fw-general] Re: zf2 - one/many-to-many relationships

2013-05-21 Thread Dan.latter
I just use mappers that contain simple methods like getProductCategories, on a Category mapper for example, this method will then just use the bridge table in its sql, I don't use a separate mapper. I do however make sure I implement the method in question in a mapper that matches the type I am

[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-21 Thread tonystamp
ok, so you have one mapper that communicates with two seperate tables (even if the second table just contains, for instance, 2 columns (foreign keys))? So i'm assuming that is two seperate TableGateway instances? Or you just have an adapter with custom sql queries? -- View this message in contex

[fw-general] Anyone using Jenkins with ZF2 projects?

2013-05-21 Thread mbneto
Hi, I was wondering if is there anyone here using jenkins with ZF2. I am looking for some build templates to deal with the ZF2 download/installation and setting the process with more than one module. Thanks.

Re: [fw-general] Anyone using Jenkins with ZF2 projects?

2013-05-21 Thread Marco Pivetta
Heya! You can look at KJSencha or ProxyManager - KJSencha even comes with a build.xml file in the repo :) For the template, we use http://jenkins-php.org/ Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 22 May 2013 02:38, mbneto wrote: > Hi, > > I was wondering if

[fw-general] Handling query string params within ZF2

2013-05-21 Thread Václav Vaník
Hi, what is the best practise for handling query string params? In ZF1 I have filter form, submit with POST, then redirect with GET and final URL is something like: /product/index/fPriceFrom/0/fPriceTo/100 select product where price is between 0 and 100. With magic default route, it was easy. I

[fw-general] Re: ZF2.2 form element name wrapping behaviour change

2013-05-21 Thread Matus Zeman
Any comments on this as it's very important feature to be discussed I believe? Matus On 20 May 2013 21:04, Matus Zeman wrote: > Hi there, > It looks like form element name "wrapping" does not work as in previous > versions of ZF2. > It's related to this commit: > https://github.com/zendframewo

[fw-general] Re: ZF2 - Model with camelCase variables and edit form

2013-05-21 Thread graphicmist
I didnt find it a very clean approach. But you problem can be easily solved using ClassMap implementation of the Hydrator -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Model-with-camelCase-variables-and-edit-form-tp4660045p4660093.html Sent from the Z

Re: [fw-general] Handling query string params within ZF2

2013-05-21 Thread Michael Gooden
Hi Vaclav, With ZF2 query params are now first class citizens with regards to routing. If you are assembling your outgoing urls in your controller or view, using the url helpers, you can add query parameters like this: ``` $from = 0; $to = 100; $myUrl = $this->url('route-name', array(/*params*/)

Re: [fw-general] Re: zf2 - one/many-to-many relationships

2013-05-21 Thread Michael Gooden
Hey all, Just to butt in here, this is how I do it: *Hypothetical situation:* *Entities:* PhoneNumber Company Person *Relations:* Companies can have many PhoneNumbers Persons can have many PhoneNumbers The same PhoneNumber can belong to multiple Companies The same PhoneNumber can belong to multip