- 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:
parent
37a6a6f54d
commit
cb924af310
File diff suppressed because it is too large
Load Diff
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user