# |
Jan 3rd 2019, 16:05 |
ricksaccous |
http://php.net/manual/en/function.version-compare.php#89416 |
# |
Jan 3rd 2019, 16:00 |
dereuromark |
Darn, everything you have to do yourself :P |
# |
Jan 3rd 2019, 16:00 |
jeremyharris |
I would as well, in composer |
# |
Jan 3rd 2019, 16:00 |
dereuromark |
i would expect to have sth in composer to normalize this |
# |
Jan 3rd 2019, 16:00 |
jeremyharris |
it’s for comparing PHP versions first and foremost |
# |
Jan 3rd 2019, 15:59 |
jeremyharris |
well your “o” is wrong based on the docs |
# |
Jan 3rd 2019, 15:59 |
dereuromark |
from a composer perspective they are the same |
# |
Jan 3rd 2019, 15:59 |
dereuromark |
thats nonsense imo |
# |
Jan 3rd 2019, 15:59 |
jeremyharris |
from SO: “You’re comparing one PHP-standardized version number string with one non-PHP-standardized version number string” https://stackoverflow.com/questions/10997482/php-version-compare-returns-1-when-comparing-5-2-and-5-2-0 |
# |
Jan 3rd 2019, 15:58 |
jeremyharris |
it is expected |
# |
Jan 3rd 2019, 15:57 |
dereuromark |
Same result for Comparator::equalTo() of composer, But I am fairly certain this is not correct.. |
# |
Jan 3rd 2019, 15:54 |
dereuromark |
is this a php bug? `1.4` and `1.4.0` should be equal right? version_compare($definedMinimum, $version, '=') for this says false? |
# |
Jan 3rd 2019, 14:52 |
jhall |
ok |
# |
Jan 3rd 2019, 14:52 |
dereuromark |
as for model validation. check if it is part of the incoming data in beforemarshall etc. then you could do it, otherwise this almost sounds like a domain validation |
# |
Jan 3rd 2019, 14:51 |
jhall |
ok |
# |
Jan 3rd 2019, 14:51 |
dereuromark |
one can easily disable that, making your validation fail semantically |
# |
Jan 3rd 2019, 14:51 |
dereuromark |
template and required attribute must never be the primary one. only syntactic sugar |
# |
Jan 3rd 2019, 14:49 |
jhall |
or is that going to be done in the template programatically applying the required attribute? |
# |
Jan 3rd 2019, 14:49 |
jhall |
like I want a field to be required only if another model's field is true |
# |
Jan 3rd 2019, 14:48 |
jhall |
is using an entity method the way to go? |
# |
Jan 3rd 2019, 14:47 |
jhall |
If I wanted to apply a rule check based on another model's value what does that look like? |
# |
Jan 3rd 2019, 14:11 |
prasanna.venkat |
unable to update hasmany associated data, data getting inserted instead of update |
# |
Jan 3rd 2019, 12:45 |
rogerpro |
Happy new year, mates! I wonder if CakePHP 2 implements a way for a model to use an SQL UNION statement, so, using 2 db tables together. Or I must just set no table and build the union manually. |
# |
Jan 3rd 2019, 12:21 |
dereuromark |
eaiser just reuse or see docs about prefix |
# |
Jan 3rd 2019, 12:08 |
asdfgh |
should i use follow this "design" or can i think about a tags system that avoid me creating many tables |
# |
Jan 3rd 2019, 12:07 |
asdfgh |
now i do agents_hobbies (linked to hobbies and agents) agents_experiences (linked to experiences and agents) and so on |
# |
Jan 3rd 2019, 12:07 |
asdfgh |
so i would like to tag with more types an agent |
# |
Jan 3rd 2019, 12:06 |
asdfgh |
dereuromark i mean that a table can have many types of tags, i mean...for example my agents table can have hobbies tags, experiences tags etc |
# |
Jan 3rd 2019, 11:51 |
dereuromark |
what u mean? |
# |
Jan 3rd 2019, 10:56 |
asdfgh |
i would like to use your cakephp-tags, can i add more tags "types" to the same table ? |
# |
Jan 3rd 2019, 10:56 |
asdfgh |
HI! dereuromark are you there? |
# |
Jan 3rd 2019, 09:48 |
azmain.nishan |
How can I write this query using Query Builder? |
# |
Jan 3rd 2019, 09:21 |
nayakvradhit |
Hi I am new to cakephp I am unable to read configure::read('AuthenticationClass') it gives null please can you assist me how to resolve it |
# |
Jan 3rd 2019, 07:49 |
admad |
https://discourse.cakephp.org/t/facebook-login-integration-in-cakephp-3-x/3746/10 achievement unlocked! Never have I been accused of writing "fake" code before :-) |
# |
Jan 3rd 2019, 06:26 |
nayakvradhit |
Configure:: read('Authentication class') gives null in _initAuth() in cakephp 2.9 please help me in this regard |
# |
Jan 3rd 2019, 03:59 |
fbotti |
there is an old disccusion here @savant https://stackoverflow.com/questions/46695552/cakephp-3-x-support-for-postgresql-8-0-8-2-database |
# |
Jan 3rd 2019, 03:57 |
fbotti |
It apparently tries to cast regclass when doing the reflection of the tables |
# |
Jan 3rd 2019, 03:57 |
fbotti |
https://thepasteb.in/p/DRhjpOvDpBWhy |
# |
Jan 3rd 2019, 03:56 |
savant |
What sort of issues? |
# |
Jan 3rd 2019, 03:45 |
fbotti |
hey @voycey thanks a lot ! |
# |
Jan 3rd 2019, 03:45 |
fbotti |
Has anyone tried working with AWS Redshift? |