i got some records using the below code.
$liveRecords = Versioned::get_by_stage('MyRecord', 'Live');
assuming that i don't know the IDs for the records, how do i scan through the records to check their titles to get the one that i want then return this record for it to act like a "get_one_by_stage"
Please help!
Thanks