CRUD example for new entity with repeating fields

Are there any good examples of how to make a new entity (along with its CRUD pages) that has an ArrayCollection as a part of it? I need to make an entity that can have multiple “layer” objects added in the form, similar to how the “media” fields on many entities is handled.