Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2013 at 16:41 UTC
Updated:
29 Jul 2014 at 22:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fagoYeah, I agree that would be a good idea.
Comment #2
damiankloip commentedI don't think we should try to do too much here tbh. And Tim, I still think we should not try to make config entities fieldable :) Here is an initial patch moving over some basic properties and cache methods to a base class. Let's get the ball rolling atleast.
I haven't touched any caching logic in the COnfigStorageController class, as it seems we should tackle that in the summary related issue.
Comment #4
damiankloip commentedwhooops
Comment #5
damiankloip commentedDoh, this is the actual correct patch. sorry for the noise.
Comment #7
damiankloip commentedReally, don't roll patches when you first wake up!
Comment #8
tim.plunkett{@inheritdoc}! Otherwise this is great.
Comment #9
damiankloip commentedGreat, thanks.
Comment #10
dawehnerThe parent method has $entityType, so we maybe fix it now, or in a follow up
Comment #11
damiankloip commentedYeah, that is being tackled in #1909418: Allow Entity Controllers to have their dependencies injected
Comment #12
fago#1893820: Manage entity field definitions in the entity manager takes care of moving the fieldDefinitions part out - so this one would by solved with that then.
Comment #13
alexpottI'm not sure of the validity of this patch given the discussion about config context and entity static caching. Tempted to set as won't fix.
Comment #14
tim.plunkettBased on issues like #2004756: Defining default values for config entities and many other divergences the two classes we've seen, we absolutely still need this.
We can choose to remove the shared cache code if we need to later.
Comment #15
alexpottNeeds re-roll :(
Comment #16
tim.plunkettExcept #1909418: Allow Entity Controllers to have their dependencies injected broke this.
Comment #17
damiankloip commentedRerolled.
I think we need this either way.
Comment #18
andypostSuppose caching should be implemented properly
Usage of
$this->cachewas broken for db entities?Comment #20
andypost#18: 1978870-18.patch queued for re-testing.
Comment #21
andypostneeds re-roll
Comment #22
dawehnerRerole and a minor thing.
Comment #23
andypostNice!
Comment #24
effulgentsia commentedAmazingly, #22 still applies despite being 4 days old, so removing the "Needs reroll" tag.
Comment #25
alexpottCommitted 1745bd2 and pushed to 8.x. Thanks!