# |
Jun 25th 2018, 08:27 |
tim |
@bogdan |
# |
Jun 25th 2018, 08:27 |
tim |
```$newOrder->isNew(true); $newOrder->unsetProperty('id');``` I think that's a way to do it with clone |
# |
Jun 25th 2018, 08:26 |
LubosR |
Tried to amend templates, but no luck so far |
# |
Jun 25th 2018, 08:26 |
LubosR |
Is there any way how to disable generated col-md-6 divs on the fly when align horizontal is set at friendsofcake/BootstrapUi form helper? |
# |
Jun 25th 2018, 08:20 |
chrisshick |
Due to my lack of sleep and because of my lack of sleep, I have answered my own question XD |
# |
Jun 25th 2018, 08:18 |
madbbb |
thank you @neon1024 |
# |
Jun 25th 2018, 08:17 |
neon1024 |
If you need associations as well |
# |
Jun 25th 2018, 08:17 |
neon1024 |
Or you could use the Duplicatable behaviour, https://github.com/riesenia/cakephp-duplicatable |
# |
Jun 25th 2018, 08:16 |
neon1024 |
Would be the other way I guess |
# |
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 |