# |
Jun 30th 2017, 12:58 |
manuweg_ |
randomNumber() can only generate numbers up to mt_getrandmax() in [/Users/wegmershaus/Dropbox/Websites/public_html/cttpcake/vendor/fzaninotto/faker/src/Faker/Provider/Base.php, line 70] |
# |
Jun 30th 2017, 12:58 |
manuweg_ |
I am trying to use faker to load some dummy data in my tables and am getting the error |
# |
Jun 30th 2017, 12:17 |
heter |
thanks @spencdev |
# |
Jun 30th 2017, 12:16 |
adriencs |
thanks @spencdev |
# |
Jun 30th 2017, 12:15 |
spencdev |
https://github.com/josegonzalez/cakephp-entity/blob/master/ORM/TableRegistry.php |
# |
Jun 30th 2017, 12:15 |
spencdev |
@adriencs Not sure if this will help, but check line 139. |
# |
Jun 30th 2017, 12:13 |
spencdev |
@heter Not sure, but that is usually the way I do it. |
# |
Jun 30th 2017, 12:12 |
adriencs |
any idea ? |
# |
Jun 30th 2017, 12:12 |
adriencs |
I met a strange error today : `You cannot configure "Users", it already exists in the registry.` |
# |
Jun 30th 2017, 12:12 |
heter |
another stupid question - is there better cake-way to glue couple of object (string) properties into a string? e.g. atm i have something like this: $string = ''; ```foreach($objects as $key => $object){ $string .= $object->prop.'/'; }``` |
# |
Jun 30th 2017, 11:50 |
heter |
good point, i usually do, no idea why i didnt checked it this time, im simply dumb today, anyway thanks for quick response ! cheers |
# |
Jun 30th 2017, 11:49 |
admad |
you won't find every method mentioned in the book, need to check API too |
# |
Jun 30th 2017, 11:49 |
heter |
oh, ye, i forget to check api rather than book :P |
# |
Jun 30th 2017, 11:49 |
admad |
https://api.cakephp.org/3.4/class-Cake.ORM.Behavior.TreeBehavior.html |
# |
Jun 30th 2017, 11:49 |
heter |
cause on description of tree behavior there's nothing about it |
# |
Jun 30th 2017, 11:48 |
heter |
is it described anywhere in doc? |
# |
Jun 30th 2017, 11:48 |
heter |
nope |
# |
Jun 30th 2017, 11:48 |
admad |
@heter did you check findPath() ? |
# |
Jun 30th 2017, 11:46 |
heter |
cakephp 3.4.x btw |
# |
Jun 30th 2017, 11:46 |
heter |
i mean nested parents |
# |
Jun 30th 2017, 11:46 |
heter |
hello there, i have question about tree behavior - ive got like child on 7th depth, is there any easy way that i can get all parents of record? something like we have with children but like parents ? |
# |
Jun 30th 2017, 11:42 |
juststeveking |
I have extended the behaviour now, just to test and see if I can get the routes to work |
# |
Jun 30th 2017, 11:42 |
juststeveking |
Thanks :slightly_smiling_face: |
# |
Jun 30th 2017, 11:41 |
neon1024 |
Yes, but you’ll just need to select 2.x from the documentation version dropdown in the top right hand corner of the documentation website |
# |
Jun 30th 2017, 11:38 |
juststeveking |
It is a legacy application I've picked up |
# |
Jun 30th 2017, 11:38 |
juststeveking |
Does that work the same with cake2? |
# |
Jun 30th 2017, 11:36 |
neon1024 |
You can find more information in the book, https://book.cakephp.org/3.0/en/index.html |
# |
Jun 30th 2017, 11:36 |
neon1024 |
You’d need to make an admin prefixed controller in your application, which used the plugins table classes, loaded some data and set it to the view |
# |
Jun 30th 2017, 11:36 |
juststeveking |
Sorry! |
# |
Jun 30th 2017, 11:36 |
juststeveking |
How do I view them? I am soo not used to the cake way yet |
# |
Jun 30th 2017, 11:35 |
neon1024 |
So perhaps I spoke too soon! |
# |
Jun 30th 2017, 11:35 |
neon1024 |
Although it has admin prefix templates |
# |
Jun 30th 2017, 11:35 |
neon1024 |
Well it looks like that’s up to you |
# |
Jun 30th 2017, 11:33 |
juststeveking |
However I also want to Audits to be viewable? |
# |
Jun 30th 2017, 11:33 |
juststeveking |
This is the one I am using: https://github.com/jippi/cakephp-audit-log |
# |
Jun 30th 2017, 11:32 |
juststeveking |
I guess I could extend it a little |
# |
Jun 30th 2017, 11:32 |
juststeveking |
THat is where I got the one that slightly works |
# |
Jun 30th 2017, 11:31 |
neon1024 |
https://github.com/FriendsOfCake/awesome-cakephp |
# |
Jun 30th 2017, 11:31 |
neon1024 |
First stop for me would be the awesome-cakephp list |
# |
Jun 30th 2017, 11:29 |
juststeveking |
Both plugins I have found: 1 didn't work, and the other only works partially |
# |
Jun 30th 2017, 11:28 |
juststeveking |
I wanted to record full CRUD not just CUD |