Re: [fw-general] using config array with closure to build where clauses

2013-07-07 Thread Dan.latter
Hi, Maybe not an answer to your question but speaking from experiance and in no way to patronise but do what you know you can do now and enhance later. Dont get caught up trying to do things the right way because there is no such thing. And it will speed you up. In my opinion, appyling this

Re: [fw-general] Survey: to composer or not to composer

2013-05-30 Thread Dan.latter
loader In my opinion all you are doing is adding another step a new user will have to perform when getting up and running with ZF2, and thus adding another layer of complexity, to what is already somthing that is hard to get a grip of. Maybe add 2 implementations or show how both are used but

Re: [fw-general] Survey: to composer or not to composer

2013-05-30 Thread Dan.latter
Pivetta http://twitter.com/Ocramius  http://ocramius.github.com/ On 30 May 2013 19:48, Dan.latter dan.lat...@gmail.com wrote: loader In my opinion all you are doing is adding another step a new user will have to perform when getting up and running with ZF2, and thus adding another layer

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

Re: [fw-general] Re: Get Apache variable in PHPUnit tests

2013-05-08 Thread Dan.latter
Does it have to connect payment server? It's hard for me to tell without knowing in depth details, do you own/run payment server? I'd argue that you should'nt be connecting to servers in unit tests. But I guess it depends on specific case. stef ivan.d.stefano...@gmail.com wrote: Hi, that

Re: [fw-general] Re: [ZF2] How to get data from related entity

2013-04-06 Thread Dan.latter
Yeah but it could be a helper method that wraps the call to getAuthor in order to return author name. Marco Pivetta ocram...@gmail.com wrote: That's conceptually wrong. You first get the author, then his name. You don't call `getAuthorName` on a book. Marco Pivetta http://twitter.com/Ocramius

Re: [fw-general] Force ZF2_PATH to be used

2013-02-22 Thread Dan.latter
Hi, If your code is under source control you could use an external that points to a particular zf2 version, then you just change the version the external points to. mpalourdio benoit.d...@unil.ch wrote: Hello, Is it possible to force a zf2 application to use the zf2 library stored in the