I want to add a property to my User model that returns the number of rows in the Project table that have a user Id of the user.
So something like this...
def numProjects = {
/* somehow get count from Project table The straight sql would be: SELECT COUNT(*) FROM projects WHERE userId =
*/
}