1
0
mirror of synced 2025-01-18 22:41:43 +03:00

- Added Doctrine_Record::trySave()

- Modified the length validation to skip validation for integer fields. The length of integer fields represents the number of bytes and is used for table creation (4 = INT, ect.)
This commit is contained in:
romanb 2007-01-19 20:47:24 +00:00
parent 37a6a6f54d
commit cb924af310
2 changed files with 1559 additions and 1543 deletions

File diff suppressed because it is too large Load Diff

View File

@ -177,12 +177,11 @@ class Doctrine_Validator
}
}
/**
* Enter description here...
*
* Validates the length of a field.
*/
private function validateLength($column, $key, $value)
{
if ($column[0] == "timestamp") {
if ($column[0] == "timestamp" || $column[0] == "integer") {
return true;
} else if ($column[0] == "array" || $column[0] == "object") {
$length = strlen(serialize($value));