Timeline for change node field value without node->save or without causing hook_entity_presave infinite loop
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 20, 2021 at 11:29 | history | edited | GiorgosK | CC BY-SA 4.0 |
added 4 characters in body
|
Dec 6, 2018 at 12:52 | history | edited | GiorgosK | CC BY-SA 4.0 |
added 2 characters in body
|
Apr 9, 2017 at 17:00 | history | tweeted | twitter.com/StackDrupal/status/851117570384158720 | ||
Mar 17, 2017 at 15:43 | vote | accept | GiorgosK | ||
Mar 10, 2017 at 14:25 | comment | added | Berdir | @NoSssweat that does not make it a supported API. Almost all tables are abstracted by services/API's that should be used instead. They are meant to be replaceable, another site might use MongoDB or so. Somewhat unlikely for custom code for a custom site but it's still possible that core will make a change that will break it | |
Mar 9, 2017 at 18:13 | history | edited | GiorgosK | CC BY-SA 3.0 |
added 35 characters in body
|
Mar 9, 2017 at 0:02 | comment | added | No Sssweat |
@Berdir he could use the replacements of db_select and db_update, Connection::select and Connection::update
|
|
Mar 8, 2017 at 19:06 | history | edited | GiorgosK | CC BY-SA 3.0 |
deleted 31 characters in body
|
Mar 8, 2017 at 19:05 | answer | added | GiorgosK | timeline score: 9 | |
Mar 8, 2017 at 18:42 | history | edited | GiorgosK | CC BY-SA 3.0 |
title is more inclusive of all options for solution
|
Mar 8, 2017 at 12:34 | comment | added | Berdir | There is no supported API to do this, interacting with the tables directly might break in future versions | |
Mar 8, 2017 at 11:59 | comment | added | GiorgosK | Sounds good !! any pointer will be helpful ... | |
Mar 8, 2017 at 11:56 | comment | added | No Sssweat |
Then don't use Node::load() and instead query the field_counter DB table directly.
|
|
Mar 8, 2017 at 11:47 | history | edited | GiorgosK | CC BY-SA 3.0 |
added 40 characters in body
|
Mar 8, 2017 at 11:40 | comment | added | GiorgosK |
This post does not answer my question really. My problem is not saving the presaved node without node->save but other nodes that I get on the fly ... please read the question thoroughly.
|
|
Mar 8, 2017 at 11:36 | comment | added | Shreya Shetty | Check this drupal.stackexchange.com/questions/211083/… | |
Mar 8, 2017 at 11:29 | history | asked | GiorgosK | CC BY-SA 3.0 |