for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Germania\Salesmen;
class PdoActiveSalesmen extends PdoAllSalesmen
{
public function __construct (\PDO $pdo, $table, SalesmanInterface $salesman = null)
parent::__construct( $pdo, $table, $salesman);
$filtered = new ActiveSalesmanFilterIterator( $this->getIterator(), true);
$this->salesmen = iterator_to_array( $filtered );
}