Ticket #225 (assigned enhancement)
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
Note: See
TracTickets for help on using
tickets.