Hello Silverstripe Experts,
i'm working on a system where i can manage Candidates, Contractors and Vacancys.
For the Candidates i have the option to add Files for example a copy of his/here pasport.
I use this code but it is not working, i thing because the ID of the Bijlage is not given. When i print_r($dbFiles) i get dataQuery:protected. Everything is protected except for the title where i'm searching for.
Doe anyone have a clue how i can get the information of Bijlage or how i can delete this DataObject in another way?
Thanks in advance.
while (isset($_POST['Bestand'][$i])){
$test = $_POST['Bestand'][$i];
print_r($test);
$dbFiles = Bijlage::get()->filter(array(
'Title' => $test
));
// $dbFiles->delete();
print_r($dbFiles);
$i++;
}