Commit cb924af3 authored by romanb's avatar romanb

- 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.)
parent 37a6a6f5
This diff is collapsed.
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment