update() and ENUM #308

Open
drez opened this Issue Mar 5, 2012 · 1 comment

Comments

Projects
None yet
2 participants

drez commented Mar 5, 2012

Hi,
I had an issue with the following code. All get and set works fine except that ENUM are not converted to the value set value. In this case, the UPDATE sql query will be type = 'sup' and not = '0'. save() works like a charm.

I use MySql, no sqlType.

$e = new Enterprise();
$e->setPrimaryKey($data['IdEnterprise']);
$e->fromArray($data);
if ($e->validate()) {
$q = new EnterpriseQuery();
$q->filterByIdEnterprise($data['IdEnterprise'])
->update($data);

}

Good day,
Fred

Hi! I have the same problem too. Did you find a solution for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment