I have a belongsTo relationship between two Models: User BelongsTo Department.
When viewing the index for User I wanted to be able to sort by Department, so I had to add a virtualField in the User model: 'department_name' => 'Department.name' This works great. However, when running my test cases for the controller I am getting errors that it cannot create the virtual field because it doesn't have access to Department: Unknown column 'Department.name' in 'field list' In my test case file the fixtures array references both User and Department so I'm not sure why it doesn't have access to the needed data. Thanks for any suggestions. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
