mark-gerarts / automapper-plus

An AutoMapper for PHP
MIT License
551 stars 30 forks source link

Limit the mapping levels #14

Open stesvis opened 6 years ago

stesvis commented 6 years ago

Is there a way to limit the level of the mapping?

Basically the same as the .Net AutoMapper.MaxDepth() https://github.com/AutoMapper/AutoMapper/blob/835261c00c072f3e08232f0cd86d40750e109690/src/AutoMapper/Configuration/MappingExpression.cs#L86

mark-gerarts commented 6 years ago

Not yet - but I'll add it to the roadmap, as it is a nice feature to have.

stesvis commented 6 years ago

Thanks. With objects that reference each other it could end up in an infinite loop..