[fw-general] Re: What is the correct structure for a module that involves more than one table?

2013-04-18 Thread Marco Pivetta
Heya! No, they are related and interconnected concepts. I personally wouldn't split it: what you can do is taking something like zfcuser and just coding the management logic into this new UserGroup module that contains only the Group table definitions. Don't think as a module as of a `container`

[fw-general] ZF2 Unit Test Fails For Abstract Class

2013-04-18 Thread stef
Hello, I have created abstract class MyProjModule that is extended by every Module.php. This class handles exceptions, logging etc in it's onBootstrap() function. The problem is, when i run unit tests for controllers it brings an error that class MyProjModule is not found. How can I 'tell'

[fw-general] Trouble with pagination / routing after update of the Zend Framework 2 library to v2.1.5

2013-04-18 Thread automatix
Hello guys! I implemented a search with pagination on a website. After the last update to `2.1.5` all search requests, that were returning results for more than one result page, are ending with an exception (see below). Child routes? Why is it needed now? Seems to be a bug, if it breaks code,

[fw-general] Re: Trouble with pagination / routing after update of the Zend Framework 2 library to v2.1.5

2013-04-18 Thread automatix
Resolved. The exception has been caused by And because a child route has been being used before it has been deprecated. -- View this message in context:

[fw-general] Re: Trouble with pagination / routing after update of the Zend Framework 2 library to v2.1.5

2013-04-18 Thread automatix
Wondering, how it has been working before... :) -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Trouble-with-pagination-routing-after-update-of-the-Zend-Framework-2-library-to-v2-1-5-tp4659773p4659775.html Sent from the Zend Framework mailing list archive

[fw-general] Help using predicate and nesting conditions

2013-04-18 Thread pobrejuanito
Hey Guys, I can't figure out how I can add parenthesis to generate a statement like one below in ZF2: *EXAMPLE1:* SELECT persons.* FROM persons WHERE *(*givenName LIKE '%john%' OR surname LIKE '%john%' OR givenName LIKE '%doe%' OR surname LIKE '%doe%'*)* AND active = 1 ORDER BY surname ASC LIMIT

Re: [fw-general] Help using predicate and nesting conditions

2013-04-18 Thread Ralph Schindler
The code below generates the following sql statement: * EXAMPLE2:* SELECT persons.* FROM persons WHERE givenName LIKE '%john%' OR surname LIKE '%john%' OR givenName LIKE '%doe%' OR surname LIKE '%doe%' AND active = 1 ORDER BY surname ASC LIMIT '2' OFFSET '0' $spec = function (Where $where) use

[fw-general] Re: Help using predicate and nesting conditions

2013-04-18 Thread pobrejuanito
I see, Thank you so much for that explanation on how to use nest. It's just what I needed. I'll study those examples you gave. Thanks again. -- View this message in context: