Permalink
Browse files

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

  • Loading branch information...
1 parent eac2666 commit e6d48f6aa2315dc8771aaa9d0fb5534850dabd3d @benwaine benwaine committed Oct 23, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Phabric/Entity.php
  2. +1 −1 lib/Phabric/Phabric.php
View
@@ -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
@@ -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);

0 comments on commit e6d48f6

Please sign in to comment.