Releases: locomotivemtl/charcoal-object
charcoal-object 0.8.1
Complete commits list: 0.8.0.1...0.8.1
Summary:
-
Improve
Hierarchical
mixin:- Added method
hasMasterObject()
. - Added methods
loadHierarchy()
andloadSiblings()
.
- Added method
-
Fix missing orphaned descendants in
HierarchicalCollection
:When collection is displayed on one page, orphaned descendants should be displayed.
Previously, they were only displayed in pagination was enabled.
-
Fix bad hierarchy repair in
HierarchicalCollection
:- Set
master
tonull
instead of0
.
- Set
-
Filter argument of
HierarchicalTrait::setMaster()
:- Fix edge case where
hasMaster()
compares0
tonull
. - Reset
masterObject
whenmaster
changes to avoid conflicts.
- Fix edge case where
charcoal-object 0.8.0
Summary
- fix hierarchical-trait master object loading
- move the loading of a master object to its own function to prevent hasty object load and allow access to the actual master object's id without the need to load it first
BREAKING: the master method now returns the master ID and masterObject returns the actual object
charcoal-object 0.7.4
Complete commits list: 0.7.3.1...0.7.4
Summary:
- Changed internals on
ObjectRevision
to skip database lookup if missing - Changed
revUser
property onObjectRevision
to support Admin users
charcoal-object 0.7.3
Complete commits list: 0.7.2...0.7.3
Summary:
- Updated locomotivemtl/charcoal-config dependency
- Updated locomotivemtl/charcoal-core dependency
- Added
get
method prefix on various methods - Changed property keys from
snake_case
tocamelCase
charcoal-object 0.7.2
Complete commits list: 0.7.1.5...0.7.2
Summary:
- Added alias for
RoutableTrait::objectRouteClass()
- Added
get
method prefix onObjectRevision
methods - Fixed
ArrayAccess
syntax forObjectRoute
- Fixed alias for
CategoryTrait::categoryItemType()
method
charcoal-object 0.7.1
Missing ArrayAccess in Content and Routable.
Legacy support for categoryItemType()
charcoal-object 0.7.0
MAJOR BREAKING
This version of charcoal-object uses the latest changes to charcoal-config (0.10.0) which allows Model getters to use getFoo()
instead of foo()
.
The best way to ensure code compatibility is to use the standard ArrayAccess getters instead of calling the method.
charcoal-object 0.6..2.1
Validate json files with jsonlint.
charcoal-object 0.6.2
- Default metadata for Content
- Order categorizable's "category" by position by default
- Add a non-storable numCategoryItems property on Category
charcoal-object 0.6.0
Key Features
Upgraded to locomotivemtl/charcoal-core v0.4.x:
New Metadata Loader and Metadata Config classes