This pull request adds the ability to add factories in combination with teams. As we're creating a instance with a team attached in our factory, but no one is authenticated at the moment, the saving closure triggers the 'No authenticated user with selected team present.'
This ensures the check is only done when necessary, that case would be when the team actually needs to be fetched from the authenticated user.
This pull request adds the ability to add factories in combination with teams. As we're creating a instance with a team attached in our factory, but no one is authenticated at the moment, the
saving
closure triggers the 'No authenticated user with selected team present.'This ensures the check is only done when necessary, that case would be when the team actually needs to be fetched from the authenticated user.