Correzioni al dao (save Tested)

Modifiche ai model
Rimossa la constrained interface in quanto inefficace e troppo pesante
This commit is contained in:
Riccardo Di Dato
2016-01-08 22:21:17 +01:00
parent 9ab9016142
commit b8a9e5e599
16 changed files with 682 additions and 198 deletions
@@ -0,0 +1,32 @@
<?php
/*
Author: Riccardo Di Dato
Creation Date: 07/gen/2016
*/
class ConstraintException extends CoreException{
private $operation;
private $key;
private $value;
public function __construct($operation,$key,$value = null){
$this->operation = $operation;
$this->key = $key;
$this->value = $value;
parent::__construct("Impossible to execute operation '$operation' on attribute '$key'".(!is_null($value)?" with value '$value'":""));
}
public function getRelatedOperation(){
return $this->operation;
}
public function getRelatedKey(){
return $this->key;
}
public function getRelatedValue(){
return $this->value;
}
}
?>