Feature suggestion: cloning \GO\Base\Db\FindParams

Discuss about Group-Office development here

Moderator: Developers

Posts: 66
Joined: Fri Jun 21, 2013 2:55 pm

Feature suggestion: cloning \GO\Base\Db\FindParams

Postby richarddodd » Mon Jul 14, 2014 1:57 pm


It would be good if you could use php5's `clone` keyword, for example if you needed 2 similar queries.

All you would need to do to provide this functionality is adding the following method to FindParams:

Code: Select all

function __clone() {
    $this->criteriaObject = clone $this->criteriaObject;
To make sure they didn't share a single findcriteria instance

Who is online

Users browsing this forum: No registered users and 1 guest