Added a folder remotely
This commit is contained in:
parent
043c7e6493
commit
19ac1e7961
11
Doctrine/Exception/Find.class.php
Normal file
11
Doctrine/Exception/Find.class.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
Doctrine::autoload("Doctrine_Exception");
|
||||||
|
/**
|
||||||
|
* thrown when user tries to find a Doctrine_Record for given primary key and that object is not found
|
||||||
|
*/
|
||||||
|
class Doctrine_Find_Exception extends Doctrine_Exception {
|
||||||
|
public function __construct() {
|
||||||
|
parent::__construct("Couldn't find Data Access Object.",Doctrine::ERR_FIND);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
11
Doctrine/Exception/Mapping.class.php
Normal file
11
Doctrine/Exception/Mapping.class.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
Doctrine::autoload("Doctrine_Exception");
|
||||||
|
/**
|
||||||
|
* thrown when user tries to get a foreign key object but the mapping is not done right
|
||||||
|
*/
|
||||||
|
class Doctrine_Mapping_Exception extends Doctrine_Exception {
|
||||||
|
public function __construct($message = "An error occured in the mapping logic.") {
|
||||||
|
parent::__construct($message,Doctrine::ERR_MAPPING);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
12
Doctrine/Exception/Naming.class.php
Normal file
12
Doctrine/Exception/Naming.class.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.php");
|
||||||
|
/**
|
||||||
|
* thrown when user defined Doctrine_Table is badly named
|
||||||
|
*/
|
||||||
|
class Doctrine_Naming_Exception extends Doctrine_Exception {
|
||||||
|
public function __construct() {
|
||||||
|
parent::__construct("Badly named Doctrine_Table. Each Doctrine_Table
|
||||||
|
must be in format [Name]Table.", Doctrine::ERR_NAMING);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
11
Doctrine/Exception/PrimaryKey.class.php
Normal file
11
Doctrine/Exception/PrimaryKey.class.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
Doctrine::autoload("Doctrine_Exception");
|
||||||
|
/**
|
||||||
|
* thrown when Doctrine_Record is loaded and there is no primary key field
|
||||||
|
*/
|
||||||
|
class Doctrine_PrimaryKey_Exception extends Doctrine_Exception {
|
||||||
|
public function __construct() {
|
||||||
|
parent::__construct("No primary key column found. Each data set must have primary key column.", Doctrine::ERR_NO_PK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user