[eluser]Gaz[/eluser]
Hi all,
I'm using IgnitedRecord and it's a beautiful piece of work that has sped up my development no-end, but for some strange reason I cannot seem to delete records.
I'm probably doing something stupid as it's the first time I've used IR. The code looks like this
Code:
function delete($id)
{
$this->rec = $this->{$this->name}->find($id);
$this->rec->delete();
}
Creating and editing records works perfectly, so I'm puzzled as to why they won't delete. I don't get any error messages, and the code continues to run perfectly.
I can delete records from the db with my MySQL client (using the same MySQL login details), so it's not a permissions problem with MySQL.
I can also do a print_r on $this->rec and the object is there, with all the correct fields.
Any help would be much appreciated.
Cheers,
Gaz.