Hello,
I've a strange problem here with my form.

Here is my schema.yml :

Site:
  actAs:
    I18n:
      fields:           [name, description]
    Timestampable:      ~
  columns:
    stylesheet:         { type: string(255) }
    favicon:            { type: string(255) }
    short_name:         { type: string(255), notnull: true, unique: true }
    name:               { type: string(255), notnull: true }
    description:        { type: string(4000) }
    address:            { type: string(255) }
    contact_email:      { type: string(255), notnull: true }

When I embed i18n to my form I get the following error:

Validation failed in class SiteTranslation

2 fields had validation errors:

* 1 validator failed on name (notnull)
* 1 validator failed on lang (length)
stack trace

   - at ()
   in
   
SF_ROOT_DIR\lib\vendor\symfony\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Transaction.php
   line 265 ... <http://www.phantom.local:8080/backend_dev.php/media_type#>
   1.                     if ($this->_internalNestingLevel == 1) {
         2.                         $tmp = $this->invalid;
         3.                         $this->invalid = array();
         4.                         throw new Doctrine_Validator_Exception(
         $tmp);
         5.                     }
         6.                 }
         7.                 if ($this->_nestingLevel == 1) {
      - at Doctrine_Transaction->commit(null)
   in
   
SF_ROOT_DIR\lib\vendor\symfony\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php
   line 1410
   1.      */
         2.     public function commit($savepoint = null)
         3.     {
         4.         return $this->transaction->commit($savepoint);
         5.     }
         6.
         7.     /**
      - at Doctrine_Connection->commit()
   in
   
SF_ROOT_DIR\lib\vendor\symfony\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection\UnitOfWork.php
   line 126


If I remove the embedded form, I've no error, everything running fine.

It look exactly the same as this old bug :
http://trac.symfony-project.org/ticket/4907  but I'm running symfony
1.2.8... and the bug was closed long time ago...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to