Skip Headers

# Using registerNewObject

Previous

Next

This section examines how to use the `registerNewObject` method, including the following the following:

- Registering a New Object With registerNewObject

- Associating New Objects With One Another

Note: You cannot use `UnitOfWork` methods `registerObject`, `registerNewObject`, or `registerExistingObject` with an aggregate object (see "Relational Aggregate Descriptors"). Doing so will raise a `ValidationException` or other errors at commit time. For more information, see "Working With Aggregates".