 
 					# Set a few event handlers
 					# Manage accounting after an entity has been persisted
-					_.on @, 'persisted', () ->
+					@persisted :> () ->
 						_.extend @,
 							_new: false
 							_modified:

				e = @build(entity._type, entity)
				e = @intern(e, true)
				#Make the entity not new...
				_.trigger(e, action)
				built.push(e)

			transaction.entities = built

		# Save all entities with changes, including new entities.
		save_all: (store) ->
			transaction = @transaction()
			@saving <: {}

			#Add all new entities to the transaction
			# Modified is keyed by type...
