Questions tagged [persist]

502 questions
-2
votes
1 answer

Using dict.clear() removes all values. How can I persist dict values?

Code with comments: result = {} def number_of_products(): return 1 # 2, 3...n def total_inventory(): return 100 # 200, 300... n def set_values(): result["numberOfProducts"] = number_of_products() result["totalInventory"] =…
Raj
  • 2,150
  • 2
  • 22
  • 43
-2
votes
1 answer

How to add cascade argument in XML file format doctrine ORM

as far as I understand I need to add a "cascade" parameter to the mapping. But my mapping is in XML. I found quite a bit of information about it but there was no result. Pleace help! Мy error is: Multiple non-persisted new entities were found…
-2
votes
1 answer

Why Apache Spark has added cache() method even though we can achieve the same functionality by calling persist(StorageLevel.MEMORY_ONLY)

Why spark added cache() method in its library i.e. rdd.py even though it internally calls self.persist(StorageLevel.MEMORY_ONLY) as stated below: def cache(self): """ Persist this RDD with the default storage level (C{MEMORY_ONLY}). """ …
Kumar
  • 3
  • 1
-2
votes
2 answers

MySQL tables are empty after restarting Linux application

I am using hibernate to persist entity objects in a local running database. Everything is working fine (connecting to the database, add/delete/update entries), as long as the application is running. I am using this code to pass the entry to a…
elp
  • 811
  • 1
  • 8
  • 25
-2
votes
1 answer

Symfony - clone edit and persist

I'm trying to clone and edit both objects (source & cloned) after form submission and persist it. $em = $this->getDoctrine()->getManager(); $em->detach($ev2); $clonedev = clone $ev; $clonedev->setUpdatedAt(new…
-2
votes
2 answers

How to persist ALL changes made in the browsers Web Development Mode

I think I have checked through all the potential extensions, please correct me if you know of one. Many times people need/like to hack away at the websites they visit and of course we want to save these for later as well, even share them. My…
Banned_User
  • 837
  • 2
  • 9
  • 16
-3
votes
1 answer

C# static variables not persisting?

Below is my code snippet, the variable "_lastError" doesn't seem to persist after it is set then accessed elsewhere. Can anyone give a heads up on what I missed or done incorrectly? I've debugged the program, setting a breakpoint at both the getter…
xefrog
  • 11
  • 5
1 2 3
33
34