Questions tagged [persist]
558 questions
3
votes
0 answers
How to persist/flush doctrine2 entities with OneToMany // ManyToOne relations?
I am trying to persist/flush my doctrine2 entities, but I am gettig an error every time:
Entity of type Test\Main\MainBundle\Entity\ProductVariantAssociation has identity
through a foreign entity Test\Main\MainBundle\Entity\Product, however…

polmabri
- 1,103
- 8
- 10
3
votes
3 answers
Data is not persisting for IndexedDB using Flutter and package Hive on web(chrome) browser
I'm using the flutter package Hive
The problem that I am encountering is that my website's data is not persisting for IndexedDB - web(chrome)
Has anyone else encountered inconsistency with data stored in IndexedDB for chrome?
Are there any…

Alecia Vermeulen
- 41
- 3
3
votes
2 answers
Unable to persist data from a Dremio Docker container using volumes
I am able to get a working instance of Dremio on Docker, but, I would like to persist the data on the container on my local.
I tried the approach mentioned in this post, and crafted my own version of the docker run query, but upon running the…

smartyputty
- 31
- 1
3
votes
3 answers
Dynamically changing a timestamp - suggestions?
I'm writing up an online examination site for an educational institution. Time limits can be set for each assessment, and once a user begins an exam, a new timestamp is created on the server. The problem is that our school computers often lock up…
user834912
3
votes
3 answers
Symfony 5 - Get old collection data before submit form
In my symfony 5 project I would like when submitting a certain form, compare the entity before and after submission.
So keep a copy of the original entity in order to perform processing.
I've :
$parametresAdmin =…

kiuega
- 141
- 1
- 12
3
votes
1 answer
stop auto unpersist of dataframe after writing to hive table
I want to persist a dataframe even after writing to hive table.
df.persist(StorageLevel.MEMORY_AND_DISK)
df.count() #count is 100
df.write.mode("append").insertInto("schema.table")
df.count() #count is 0 || because it's…

evil genius
- 45
- 4
3
votes
2 answers
Doctrine json_array config wrong order in keys
I have this weird problem with the json_array field configuration.
I have configured field meant to store some configuration. Its configured like this:
For example, I have an array like this:
[
'choices'…

Dion Snoeijen
- 143
- 2
- 9
3
votes
1 answer
How to enable tomcat Host Manager storeconfig?
Tomcat Virtual Host Manager, Persist configuration;
Message:
FAIL - Failed to persist configuration
Please enable StoreConfig to use this feature.

Adam Yao
- 161
- 2
- 7
3
votes
2 answers
Complex JPA persist order issue
I'm working on a project with some unusual entity relations which i'm having problems persisting with JPA. There are two relevant objects; User and let's call the other X. User has a one-to-many AND two one-to-one relations to X. It basicly looks…

Rasmus Franke
- 4,434
- 8
- 45
- 62
3
votes
1 answer
Yesod: querying `persist` database with a custom primary key
Supposing that I have a SQL table with persist, and that I have a custom Text as primary key instead of the auto-incrementing Int64 key.
For example, my database definition is thus:
share [mkPersist sqlSettings, mkMigrate "migrateAll"]…
user7314709
3
votes
1 answer
Rehydrate redux-persist stored state from code
I would like to rehydrate the whole state of my app from the Javascript code, just like auto-rehydrate works but on-demand.
Can someone show me an example of this ?
I think I need to emit a REHYDRATE action but I can't see how. And I am not sure it…

mguijarr
- 7,641
- 6
- 45
- 72
3
votes
2 answers
Doctrine flush() error: Expected value of type "Doctrine\Common\Collections\Collection|array"
I have a strange problem using a many-to-many relation in Symfony (with Doctrine), I've never had before in symfony projects with many-to-many relations and I can't find any difference to the other projects.
I have the two entitys Product and Tag…

Felix Letkemann
- 31
- 1
- 1
- 3
3
votes
1 answer
Persist an array of custom structs in Swift
I'm trying to store an array of custom structs.
In my attempt below I get a run-time error in the second line of saveSampleArrayOfQuerySettings() complaining about casting to AnyObject.
struct QuerySettings {
// let…

Daniel
- 3,758
- 3
- 22
- 43
3
votes
5 answers
Text file to store data
I want to persist some data into a text file in my C# application. I added the text file to the root of my project.
How do I access it now? Will this file be embedded with my exe or what?

Andy Hin
- 30,345
- 42
- 99
- 142
3
votes
1 answer
How to persist data and model in angular JS
I have one search page where user enters search criteria and search results will be displayed and when the user navigates to another page and comes back to this page the results should be persist.
Each submodule has it's own app.js and controller…

TechJump
- 79
- 1
- 12