All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Added support for config.json.
- Improved error handling in
Includes\common.php
- No longer asking for password when one is provded.
0.2.0 - 2019-06-08
- Added
--output
option tobin/export
- Rewritten the bin/* commands to take full advantage of both the
pointybeard/console
extension andpointybeard/helpers
meta package - Updated code base, dropping support for versions of PHP older than 7.3
0.1.13 - 2019-04-07
- Requiring PHP 7.2 or greater for composer and bumped phpunit to use version 8.
0.1.12 - 2019-04-02
- No longer necessary to specify section creation dates when importing
0.1.11 - 2019-03-20
- Fixed usage information in
bin/export
- Added flag
Import::FLAG_SKIP_ORDERING
. - Added ability to pass flags into
Import::fromJsonString()
,Import::fromJsonFile()
, andImport::FromObject()
.
0.1.10 - 2019-03-15
- Fixed field id accessor in
hasFetchAssociatedFieldTrait
trait
0.1.9 - 2019-03-10
- Added Uuid field model (previously UUID) to avoid namespace case issues on case sensitive operating systems. Removed UUID field model in order to rename to Uuid
0.1.8 - 2019-03-10
- Added
CorruptFieldException
exception which is used byAbstractField::loadFromId()
- Throwing
CorruptFieldException
if there is a problem inAbstractField::loadFromId()
- Setting field ID correctly if
AbstractField::commit()
triggers an update instead of insert.
0.1.7 - 2019-03-06
- Removed
LIMIT 1
fromSectionAssociation::fetchByChildSectionId()
which Prevented more than a single association from being returned. - Fixed ordering issue when generating an export (Closes #1)
0.1.6 - 2019-02-23
- Showing result count when running
bin/diff
- Passing section handle to call of
AbstractField::loadFromElementName()
inLib\Diff
- Added
sectionHandle
argument toAbstractField::loadFromElementName()
method. - Updated
AbstractField::loadFromElementName()
to usesectionHandle
in SQL, ensuring the correct field is retrieved (i.e. not just the first found withelementName
)
- Fixed example in
--usage
forbin/export
- Added
phpunit/phpunit
and movedsymphonycms/symphony2
to require-dev composer definition.
0.1.4 - 2018-11-28
- Added test data for import and diff
- Added
symphonycms/symphony-2
andpointybeard/php-cli-lib
to composer - Added
--help
information - Using
CLILib
for parsing arguments and displaying messages inbin/diff
,bin/import
, andbin/export
- Changed AbstractTableModel::isFlagSet() from protected to public
- Added extra checks to Select model
hasAssociations()
,associationParentSectionId()
, andassociationParentSectionFieldId()
methods to ensure 'dynamicOptions' is an instance ofProperty
before trying to test the value - Renamed
DiffRecord
toRecord
and placed inside/Diff
folder. Updated Diff class to reflect this change - Throwing exception if model for field type cannot be located when attempting to import
- Changed self to static when calling getFieldMappings() in the constructor. This ensures custom properties in the child class are set initialised correctly
- Throwing exception if unable to find field ID from provided element name in
AbstractField::loadFromElementName()
- Throwing exception if unable to load field from provided ID in
AbstractField::loadFromId()
0.1.3 - 2018-11-28
- Implemented
__toArray()
abstract method in Section, AbstractField, and SectionAssociation models - Added
hasToStringToJsonTrait
Trait. This provides__toJson()
and__toString()
- Added
fromObject()
method, and moved code from thefromJson()
method intofromObject()
in the Import class - Added abstract
__toArray()
method,all()
method inAbstractTableModel
- Using
hasToStringToJsonTrait
Trait inAbstractTableModel
which allow means__toJson()
and__toString()
trickle down to AbstractField, Section, and SectionAssociation
0.1.2 - 2018-11-25
Added additional field models: Order ID, Primary Entry, and Reverse Regex
PHP CS Fixer run over code base
Changed field mapping of Select field so dynamicOptions
can be NULL
Modified testing for NULL in AbstractTableModel::enforceType()
. If it's not NULL, it will fall through to the other types
Handling circular dependencies and fields that link to other fields in the same section. Fixed default state of Checkbox field so 'on' converts to 'yes' and 'off' to 'no'
0.1.1 - 2018-11-25
- Added UUID and Unique Input field models
- Added Import class that will generate sections from a JSON file or string
- Renamed
Selectbox_Link
toSelectboxLink
- Made
fieldTypeToClassName
andfieldTypeToAttributeTableName
public methods - Overloaded
hasAssociations()
in Select and Select Box Link models. Also added checks toassociationParentSectionId()
andassociationParentSectionFieldId()
- Fixed instructions on adding library via composer to README
- Fixed typo in field mappings for Textarea field model
- Initial release