SyncRule: add helper method fetching properties

This commit is contained in:
Thomas Gelf 2015-07-24 10:54:11 +02:00
parent 676e694078
commit 826cafb476

View File

@ -21,6 +21,17 @@ class SyncRule extends DbObject
'filter_expression' => null,
);
public function fetchSyncProperties()
{
$db = $this->getDb();
return SyncProperty::loadAll(
$this->getConnection(),
$db->select()->from('sync_property')->where('rule_id = ?', $this->id)
);
return $this->syncProperties;
}
/**
protected $properties = array();