I have a Photo Class and a Comments Class. I'm trying to implement a search where a user can retrieve Photos that contain Comments with certain words in them. I've thought of several ways to go about this and the simplest seems to be to include an array of Comments objects in the Photo Class.
However, I'm having trouble figure out how to query this array of comment objects to query their key 'content'.
Doing something like creating an array of the comment strings themselves would work, but I'd rather save a pointer to the comments for reasons of consistency.