public function __construct($name, $defaults, $associations = array(), Phactory $phactory)
{
$this->_collection = new Collection($name, true, $phactory);
$this->_defaults = $defaults;
$this->_sequence = new Sequence();
if (!is_array($associations)) {
throw new \Exception("\$associations must be an array of Association objects");
}
$this->setAssociations($associations);
}