# |
Jan 7th 2020, 15:02 |
martin |
ah ok :) |
# |
Jan 7th 2020, 15:01 |
admad |
@martin there's already a Cake 4 compatible beta release https://github.com/FriendsOfCake/crud/releases |
# |
Jan 7th 2020, 15:00 |
admad |
if you are using it and find any bugs submit issues or PRs :) |
# |
Jan 7th 2020, 14:59 |
admad |
@tibor.hajos there's nothing specific on the roadmap expect for Cake 4 compatibility which has already been achieved. |
# |
Jan 7th 2020, 14:56 |
tibor.hajos |
@martin Judging by the status page https://travis-ci.org/FriendsOfCake/crud/builds/629372089?utm_source=github_statusandutm_medium=notification I think it's in beta. I would also like to know what the roadmap for crud is. I'd love to help out, as I think crud is genius |
# |
Jan 7th 2020, 14:46 |
ndm |
And https://symfony.com/doc/current/components/finder.html for if you don't like to use PHP's native iterators directly. |
# |
Jan 7th 2020, 14:42 |
ricksaccous |
i just googled and found that |
# |
Jan 7th 2020, 14:42 |
ricksaccous |
https://symfony.com/doc/current/components/filesystem.html |
# |
Jan 7th 2020, 14:42 |
ricksaccous |
you can replace it with whatever |
# |
Jan 7th 2020, 14:41 |
alexdd55976 |
actually its zero fun and not working as expected |
# |
Jan 7th 2020, 14:40 |
alexdd55976 |
fellows... Filesystem/Folder/File is `deprecated`because its gonne be kicked out in 5.0 .. what to use instead? `RecursiveDirectoryIterator`` |
# |
Jan 7th 2020, 13:44 |
martin |
https://github.com/FriendsOfCake/crud/tree/cake-4.x < I see there is a branch, but not competed yet I think? |
# |
Jan 7th 2020, 13:44 |
martin |
what are the plans of friendsofcake/crud for cake 4? |
# |
Jan 7th 2020, 13:39 |
alexdd55976 |
sounds good |
# |
Jan 7th 2020, 13:39 |
dereuromark |
same same, but maybe that gives a bit of time to find and fix the issue |
# |
Jan 7th 2020, 13:39 |
alexdd55976 |
i seriously want to avoid that, but for the current state in developemnt it is acceptable. |
# |
Jan 7th 2020, 13:38 |
alexdd55976 |
nope. i didn't. i went to the appview to set the layout there. |
# |
Jan 7th 2020, 13:38 |
dereuromark |
I have sth similar with view ext not being respected. Tests are green, but in real life it doesnt take my changes. |
# |
Jan 7th 2020, 13:38 |
dereuromark |
@alexdd55976 Did you solve your layout problem? |
# |
Jan 7th 2020, 13:27 |
dereuromark |
Or wrap what you want as own custom extension. |
# |
Jan 7th 2020, 13:27 |
dereuromark |
this would be costly for runtime. Best to refactor your queries to not have alias usage. |
# |
Jan 7th 2020, 13:25 |
val |
@ndm thanks. I think it would be good to optionally support aliases, i.e. no alias by default but use an alias if it is provided as a param. |
# |
Jan 7th 2020, 13:16 |
slackebot |
a raw query. |
# |
Jan 7th 2020, 13:16 |
ndm |
@val One could possibly sneak it in by using `Query::update()` directly and passing a table name manually, like `->update('posts AS Posts')` but that's kinda hackish. Also note that aliases are being removed from `UPDATE` and `DELETE` query conditions for various reasons, among others to avoid problems with association conditions, and because aliases aren't supported (without additional clauses) in all dialects. So you may have to resort to using |
# |
Jan 7th 2020, 13:06 |
etibor |
i use to generate PDF from the view also the WkHtmlToPDF but in my case i need to use a predefinied pdf file,because sometimes its change. I only want to pass variables for it |
# |
Jan 7th 2020, 13:05 |
lubos |
I am wondering if there is core validation rules to check letters only? there is `alphaNumeric`, `numeric` but nothing to check [a-zA-Z]... do i need to use custom and regex? |
# |
Jan 7th 2020, 13:02 |
jotpe |
@etibor I normally generate PDFs by generating html first and then use WkHtmlToPDF |
# |
Jan 7th 2020, 13:00 |
jotpe |
It'sa old db, so I had to migrate a lot. |
# |
Jan 7th 2020, 13:00 |
jotpe |
Deadlock :( |
# |
Jan 7th 2020, 12:59 |
dereuromark |
You should have those fields nullable (default null). |
# |
Jan 7th 2020, 12:59 |
dereuromark |
@jotpe See https://github.com/dereuromark/cakephp-setup/blob/master/src/Shell/DbMaintenanceShell.php#L394 |
# |
Jan 7th 2020, 12:59 |
jotpe |
I can't change the modified field to null, this rises the Exception ;) |
# |
Jan 7th 2020, 12:58 |
etibor |
i know its not a real cake specific question but you may know .do you have good solution to generate PDF from current PDF pattern file,i was trying with FPDM but main problem i could not render a flatten pdf(without inputs just only texts) |
# |
Jan 7th 2020, 12:58 |
dereuromark |
just null :) |
# |
Jan 7th 2020, 12:56 |
jotpe |
What is the default value for datetime fields? E.g. I have a migration to change some fields of my table but I got: PDOException: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'modified' at row |
# |
Jan 7th 2020, 12:56 |
etibor |
hello all |
# |
Jan 7th 2020, 12:42 |
val |
`updateAll()` does not generate an alias |
# |
Jan 7th 2020, 12:41 |
val |
Hi, is there a way to generate UPDATE query with an alias like `UPDATE posts AS Post WHERE ....`? The alias is needed in the subquery. |
# |
Jan 7th 2020, 12:07 |
jotpe |
:) |
# |
Jan 7th 2020, 12:07 |
spriz |
:) |
# |
Jan 7th 2020, 12:07 |
spriz |
Obviously fofi |