# |
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? |
# |
Jan 3rd 2019, 03:44 |
fbotti |
I'm developing an against redshift and I'm having a few casting issues |
# |
Jan 3rd 2019, 03:44 |
fbotti |
Hi guys |
# |
Jan 3rd 2019, 02:56 |
hmic |
Welcome |
# |
Jan 3rd 2019, 02:55 |
NickBusey |
Yup, that was it. Thanks |
# |
Jan 3rd 2019, 02:51 |
NickBusey |
Hmm, that is probably it then |
# |
Jan 3rd 2019, 02:49 |
hmic |
if you don't have a fully qualified path, the path it uses is different (cwd) from the commandline and webserver (ROOT vs WEBROOT usually) |
# |
Jan 3rd 2019, 02:48 |
hmic |
NickBusey, what does your database config look like? are you sure it uses the database file you provide? |
# |
Jan 3rd 2019, 02:30 |
NickBusey |
Heh, sure, but as a data source it's not working |
# |
Jan 3rd 2019, 02:25 |
admad |
NickBusey: if you are using debugkit then you too already have cake working with sqlite :) |
# |
Jan 2nd 2019, 23:43 |
NickBusey |
Anyone gotten Sqlite working with cake? Still getting `Cannot describe users. It has 0 columns.` despite that table having columns. Have cleared cake's cache |
# |
Jan 2nd 2019, 22:08 |
ricksaccous |
wew |
# |
Jan 2nd 2019, 22:07 |
phantomwatson |
Sadly, at the current stage that I'm at in refactoring and overhauling a very broken site, it would be a little cumbersome to get it operational enough to test this. |
# |
Jan 2nd 2019, 22:06 |
ricksaccous |
also hope you're handling the case where tagNames is empty |
# |
Jan 2nd 2019, 22:06 |
ricksaccous |
you can prob just do $q->where(['Tags.name IN' => $tagNames]); but your way is more expressive? |
# |
Jan 2nd 2019, 22:05 |
ricksaccous |
is it working? lell |