This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Zend\Stdlib\PriorityList cannot contain false values #6768
Comments
afaik, boolean in db use tinyint(1) for 0 as false or 1 as true. why not use 0 and 1 instead ? maybe you can do : $sql->set(array('value2'=>'test', 'value3'=>(int) true, 'value1'=> (int) false)); with cast with (int) ... |
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Oct 16, 2014
btw, I have tried to create PR #6773 to it |
Yes, using integers is a workaround. But is not it better to have a library to work correctly? This bug reminds me similar ZF1 bug: http://framework.zend.com/issues/browse/ZF-1457 Still actual, 7 years old, btw. Seems like booleans in database is a pain point of ZF. |
Yeah, could you take a look at PR #6773 and maybe suggest some feedback if there is something missing ? |
Grundik
added a commit
to Grundik/zf2
that referenced
this issue
Oct 16, 2014
Maybe its better not interfere by converting types, since PriorityList in Stdlib package. Something like this: Grundik@e9812a0 |
This was referenced Oct 31, 2014
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Nov 19, 2014
Ocramius
pushed a commit
that referenced
this issue
Nov 20, 2014
Ocramius
added a commit
that referenced
this issue
Nov 20, 2014
… into its own test method with `@group` annotations
Ocramius
added a commit
that referenced
this issue
Nov 20, 2014
Ocramius
added a commit
that referenced
this issue
Nov 20, 2014
Ocramius
added a commit
that referenced
this issue
Nov 20, 2014
…erations syntax and simplifying code
Ocramius
added a commit
that referenced
this issue
Nov 20, 2014
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
… in PriorityList
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
…ist should be valid
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
…dding missing @group annotations
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
…emoving unused protected property
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
…emoving redundant docblocks, cleaning up comparison operations syntax and simplifying code
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
gianarb
pushed a commit
to zendframework/zend-stdlib
that referenced
this issue
May 15, 2015
…ues-in-priority-list' into 'develop' Close zendframework/zendframework#6773 Close zendframework/zendframework#6768 Close zendframework/zendframework#6820 Close zendframework/zendframework#6834 Close zendframework/zendframework#6881 Forward port zendframework/zendframework#6773 Forward port zendframework/zendframework#6768
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As a consequence, Zend\Db\Sql\Update not only cannot set false values, but also stop setting any values beyond false one.
PriorityList->valid() checks, is ->current() returns false. But ->current() returns false not only if current item is invalid, but also when item is false.
The text was updated successfully, but these errors were encountered: