Nextras\Orm\Entity\IEntity::isPersisted PHP 메소드

isPersisted() 공개 메소드

Returns true if entity is persisted.
public isPersisted ( ) : boolean
리턴 boolean
    public function isPersisted();

Usage Example

예제 #1
0
파일: Form.php 프로젝트: ytnuk/orm
 protected function attached($control)
 {
     parent::attached($control);
     $this->addComponent($this->createComponent($this->entity), 'this');
     $this->addGroup('orm.form.action.group');
     $action = $this->addContainer('action');
     $action->addSubmit('add', 'orm.form.action.add.label')->setDisabled($this->entity->isPersisted());
     $action->addSubmit('edit', 'orm.form.action.edit.label')->setDisabled(!$this->entity->isPersisted());
     $action->addSubmit('delete', 'orm.form.action.delete.label')->setValidationScope(FALSE)->setDisabled(!$this->entity->isPersisted());
 }
All Usage Examples Of Nextras\Orm\Entity\IEntity::isPersisted