public function newForeignCollection() { $schema = $this->newForeignSchema(); $collectionClass = $schema->getCollectionClass(); return new $collectionClass(); }