Ticket #225 (assigned enhancement)

Opened 4 years ago

Last modified 3 years ago

Flexible copy/deepcopy

Reported by: soenke Owned by: soenke
Priority: low Milestone: 2.0
Component: Generator Version: devel
Severity: minor Keywords:
Cc:

Description

I'd like to enhance the copy() functionality of copy()-method:

The deepCopy parameter could also accept an associative array (or object?) with

[tablename] => depth

so we can limit the depth and/or specify the tables that are copied.

  • If $deepCopy is boolean, it behaves like now.
  • If it's an array, behavior is like above.
  • And maybe if it's integer, the depth is meant (and all tables are copied)

Sounds like parameter polymorphism, doesn't it? ;-)

Change History

comment:1 Changed 4 years ago by soenke

  • Status changed from new to assigned

comment:2 Changed 3 years ago by hans

  • Priority changed from normal to low
  • Severity changed from normal to minor

comment:3 Changed 3 years ago by hans

  • Milestone changed from 1.3 to 2.0

Soenke, I'm assuming this is not something you are going to get to for 1.3 release, so I'm moving it ahead.

comment:4 Changed 3 years ago by soenke

yeah that's totally ok :)

Note: See TracTickets for help on using tickets.