Skip to content

Commit

Permalink
Added Model Structure Property
Browse files Browse the repository at this point in the history
Changes:
- Moved metadata/modeling from `StructureProperty` to new `ModelStructureProperty`
- Improved parsing of structure vals to better use the models they are bound to
- Added support for saving nested properties when saving the structure property
- Added customizable "sql_type" to pick among the TEXT data types
  • Loading branch information
mcaskill committed Jul 10, 2017
1 parent 01f8731 commit c96efdf
Show file tree
Hide file tree
Showing 7 changed files with 702 additions and 514 deletions.
12 changes: 0 additions & 12 deletions src/Charcoal/Property/MapStructureProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,4 @@ public function type()
{
return 'map-structure';
}

/**
* Retrieve the property's SQL data type (storage format).
*
* For a lack of better array support in mysql, data is stored as encoded JSON in a LONGTEXT.
*
* @return string
*/
public function sqlType()
{
return 'TEXT';
}
}

0 comments on commit c96efdf

Please sign in to comment.