I would like to save data in Doctrine 2.3 unfortunately I get error also if it`s possible I need good tutorial for this because in my opinion documentation is not useful.
My last topic:
Controller error in CodeIgniter and Doctrine tutorial
Eroor:
Fatal error: Call to undefined method User::save() in C:\wamp\www\nauka\application\controllers\hello.php on line 19
Picture with option save:

Model

ripa I make this what you want but I get error:
Parse error: parse error, expecting `T_FUNCTION’ in C:\wamp\www\nauka\application\controllers\hello.php on line 8
<?php
// system/application/controllers/hello.php
$this->load->model("user");
class Hello extends CI_Controller {
$this->user->setTableDefinition();
function world() {
echo "Hello CodeIgniter!";
}
function user_test() {
$u = new User;
$u->username = 'johndoe';
$u->password = 'secret';
$u->first_name = 'John';
$u->last_name = 'Doe';
$u->save();
$u2 = new User;
$u2->username = 'phprocks';
$u2->password = 'mypass';
$u2->first_name = 'Codeigniter';
$u2->last_name = 'Doctrine';
$u2->save();
echo "added 2 users";
}
}
?>
can get help from http://ellislab.com/codeigniter/user-guide/general/models.html. see “table of contents” of this link. you will get everything related to codeigniter.