Hi,
I’m using ahDoctrineEasyEmbeddedRelationsPlugin for an
admin form with the code that follow. In the creation of a company
(empresa), the relation many to many is saved ok, nut in th edition,
the blank form always is validated, or tries to input in the tababase
null values, anyone has a clue?
$this->embedRelations(array(
'EmpresaProduto' => array(
'considerNewFormEmptyFields' => array('idproduto'),
'newFormLabel' => "Produtos relacionadas",
'newFormAfterExistingRelations' =>true,
'newFormClassArgs' => array(array('idempresa' =>
$this['idempresa']))
)));
EmpresaProduto:
connection: doctrine
tableName: empresa_produto
columns:
idempresa:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
idproduto:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
id:
type: integer(8)
fixed: false
unsigned: true
primary: true
autoincrement: true
relations:
Empresa:
local: idempresa
foreign: idempresa
type: one
Produto:
local: idproduto
foreign: idproduto
type: one
Empresa_3:
class: Empresa
local: idempresa
foreign: idempresa
type: one
Produto_4:
class: Produto
local: idproduto
foreign: idproduto
type: one
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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