changed model access to models('ModelName') instead of models.ModelName