Mongolid\ActiveRecord::insert PHP Méthode

insert() public méthode

Insert this object into database.
public insert ( ) : boolean
Résultat boolean Success
    public function insert()
    {
        return $this->execute('insert');
    }

Usage Example

 public function testInsertShouldReturnFalseIfCollectionIsNull()
 {
     $this->assertFalse($this->entity->insert());
 }