Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a bug that prevented 'default' values from being used on entities.

  • Loading branch information...
commit e6d48f6aa2315dc8771aaa9d0fb5534850dabd3d 1 parent eac2666
@benwaine benwaine authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/Phabric/Entity.php
  2. +1 −1  lib/Phabric/Phabric.php
View
2  lib/Phabric/Entity.php
@@ -120,7 +120,7 @@ public function __construct(IDatasource $ds, Phabric $bus, $config = null)
if(isset($config['defaults']))
{
- $this->setDefaults($defaults);
+ $this->setDefaults($config['defaults']);
}
if(isset($config['options']))
View
2  lib/Phabric/Phabric.php
@@ -172,7 +172,7 @@ public function getEntity($name)
* @param boolean $default Determines if default data values should be applied.
*
*/
- public function insertFromTable($entityName, TableNode $table, $default = null)
+ public function insertFromTable($entityName, TableNode $table, $default = true)
{
$entity = $this->getEntity($entityName);
Please sign in to comment.
Something went wrong with that request. Please try again.