[eluser]johnmerlino[/eluser]
My object does have a column property but it still does an insert into statement:
Code:
var_dump($post->id);
$post->save();
$post->check_last_query();
output:
Code:
int(1) int(1)
INSERT INTO `posts` (`title`, `body`) VALUES ('HL Group', 'HL Group is an organization dedicated to helping others.')
So above $post has an id of 1. But the save() method still does an insert into statement rather than an update statement.
my posts table has the following structure:
id int auto_increment not null primary key length(11)
title varchar 255 null
description varchar 255 null
body text
created_at datetime
updated_at datetime
user_id int length(11)
page_id int length(11)
I am using the latest version of datamapper - datamapper orm.
Thanks for response.