Model::save PHP 메소드

save() 공개 메소드

Save the data associated with this model instance to the database.
public save ( ) : null
리턴 null
    public function save()
    {
        return $this->orm->save();
    }

Usage Example

예제 #1
0
파일: AclTest.php 프로젝트: gotcms/gotcms
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     $this->user = Model::fromArray(array('lastname' => 'Test', 'firstname' => 'Test', 'email' => '*****@*****.**', 'login' => 'test-user-model', 'user_acl_role_id' => 1));
     $this->user->setPassword('test-user-model-password');
     $this->user->save();
     $this->object = new Acl($this->user);
 }
All Usage Examples Of Model::save