Therearecoupleofwaysforcreatingnewrecords.Propablytheeasiestisusingnativephpnew-operator.TheotherwaysarecallingDoctrine_Table::create()orDoctrine_Connection::create().Thelasttwoexistsonlyforbackwardcompatibility.Therecommendedwayofcreatingnewobjectsisthenewoperator.<codetype="php">$user=$conn->create("User");// alternative way:$table=$conn->getTable("User");$user=$table->create();// the simpliest way:$user=newUser();// records support array access$user["name"]="John Locke";// save user into database$user->save();</code>