Log message #4153722

# At Username Text
# Jun 25th 2018, 08:16 neon1024 `$entityArray = $entity->toArray(); unset($entityArray['id']); $newEntity = $this->Examples->newEntity($entityData);`
# Jun 25th 2018, 08:15 neon1024 Yes
# Jun 25th 2018, 08:15 madbbb but it will clone id field?
# Jun 25th 2018, 08:15 chrisshick @bogdan
# Jun 25th 2018, 08:15 chrisshick :point_up:
# Jun 25th 2018, 08:14 neon1024 Use `clone`
# Jun 25th 2018, 08:14 madbbb what is the simplest way to clone entity?
# Jun 25th 2018, 08:14 chrisshick Any familiar with using multiple different buildRules for a given situation?
# Jun 25th 2018, 08:14 madbbb Morning
# Jun 25th 2018, 08:13 chrisshick Good morning @neon1024
# Jun 25th 2018, 07:32 neon1024 Morning everyone
# Jun 25th 2018, 07:15 mohitprakashsharma555 Okay @narendravaghela @bravo-kernel Thanks For your response
# Jun 25th 2018, 07:12 narendravaghela - You need to register a service worker for your web application using JavaScript - Configure your service worker to handle the requests and cache the necessary files/assets locally - Read the docs for specific requirement and what Service Worker offers - https://developers.google.com/web/fundamentals/primers/service-workers/
# Jun 25th 2018, 07:10 mohitprakashsharma555 @narendravaghela If you have some idea please let me know. little bit
# Jun 25th 2018, 07:06 mohitprakashsharma555 can u please some idea how ? Please
# Jun 25th 2018, 07:05 narendravaghela yes, you can do that.
# Jun 25th 2018, 07:03 mohitprakashsharma555 i just want to do if user data is on that will use live site if they did't have connection it will use automatic downloaded html
# Jun 25th 2018, 07:03 narendravaghela Here, the Service Workers come in picture, you can cache stuff on user's machine using them and serve it locally
# Jun 25th 2018, 07:02 mohitprakashsharma555 yes @narendravaghela i just want to know can we do this type of functionality using cake With the help of cache or session. or download html
# Jun 25th 2018, 06:59 narendravaghela YouTube offline video feature is available on mobile app only I think, there is nothing like that on web app.
# Jun 25th 2018, 06:53 mohitprakashsharma555 oh in youtube there have a video offline feature you can use just download and see the video ofline
# Jun 25th 2018, 06:53 saeideng with cake you can implement any site
# Jun 25th 2018, 06:52 saeideng I did not see youtube ofline service :slightly_smiling_face:
# Jun 25th 2018, 06:51 mohitprakashsharma555 @saeideng like youtube ofline feature
# Jun 25th 2018, 06:39 bravo-kernel @saeideng I would guess he is talking about [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers)
# Jun 25th 2018, 06:33 saeideng what mean of offline ?
# Jun 25th 2018, 06:17 mohitprakashsharma555 hey guys i there have any way to access the site offline ?
# Jun 25th 2018, 03:35 kortho Hello, someone speaks Spanish
# Jun 25th 2018, 01:05 hippo @mikesmoniker thanks, looks like it might work, will let you kno!
# Jun 25th 2018, 00:55 mikesmoniker Something like that sounds close.
# Jun 25th 2018, 00:54 mikesmoniker Wouldn’t something like `'approx_price_paid' => $query->newExpr()->add('approximate count(pricepaid)')` in your ORM query `select()` work?
# Jun 25th 2018, 00:40 hippo looking at how `DISTINCT` is done makes me think there is no easy way
# Jun 25th 2018, 00:28 hippo Anyone know how to easily add the approximate here to a query (using the query builder, I don't want to do custom SQL): `select approximate count(pricepaid) from sales;`
# Jun 24th 2018, 17:21 saeideng https://book.cakephp.org/3.0/en/orm/query-builder.html
# Jun 24th 2018, 17:21 saeideng $query = $articles->find(); $query->select(['count' => $query->func()->count('*')]);
# Jun 24th 2018, 17:15 D-rex I have a table thats setup with user_id,tweet_id column. im grouping them based on the tweet_id. $this->LikedTweets->find()->group(['LikedTweets.tweet_id']); How can I count the grouped results for a like counter?
# Jun 24th 2018, 17:11 mub ok,thank you @slackbot4
# Jun 24th 2018, 17:06 saeideng also if you didn't see this result in console , use `composer install` for complete install
# Jun 24th 2018, 17:05 saeideng and it make `tmp` `log` writeable for you
# Jun 24th 2018, 17:04 saeideng when you trying to install with composer
# Jun 24th 2018, 17:04 saeideng cake have a shell to change this value