The other day I posted a posted a question where I could get objects that had a particular ID
jobsob = DataObject::get('Jobs', 'FamiliesID = 226');
But I wanted to replace 226 with the ID of the class I'm in. I was given this as the solution:
$jobsob = DataObject::get('Jobs', "FamiliesID = {$this->ID}"); And it worked perfectly. I'm just trying to modify it slightly and I get errors.
What I want now.
$jobsob = DataObject::get('Jobs', "FamilyTitle = {$this->Title}"); FamilyTitle is just a different field in Jobs and I want to get the all the Jobs where FamilyTitle is equal to the Title of the object I'm in.
I'd appreciate any idea why this isn't working.
Brian