Welcome Guest, Not a member yet? Register   Sign In
Active Record Delete Weirdness
#1

[eluser]Lowkase[/eluser]
Well,

I am stumped on this one, here is calling code:

// Start MySQL Transaction
$this->db->trans_start();

// Delete the color from the color table
$this->colors_model->delete($color_id);

// OTHER CALLS TO MODELS

// Complete the MySQL Transaction
$this->db->trans_complete();


Here is the delete function in the colors_model:

// DELETE
function delete($id)
{
$this->db->delete( 'colors', array('id' => $id) );
}


Active record deletes the specific ID I am passing to the function, however, somehow, ActiveRecord is deleting the FIRST record from the same table as well.

There is one other place in the code that I call the delete function in the colors_model but it does not produce the same "buggy" result.

Anyone ever run into this situation?


Thanks,

Lokase


Messages In This Thread
Active Record Delete Weirdness - by El Forum - 06-29-2010, 02:52 PM
Active Record Delete Weirdness - by El Forum - 06-29-2010, 03:00 PM
Active Record Delete Weirdness - by El Forum - 06-29-2010, 03:02 PM
Active Record Delete Weirdness - by El Forum - 06-29-2010, 03:05 PM
Active Record Delete Weirdness - by El Forum - 06-29-2010, 03:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB