function __construct(array $columns) { $aggrement_resolver = new lmbARRelationAggrementsResolver(); foreach ($columns as $column) { if (!$aggrement_resolver->isRelationColumn($column) && !$aggrement_resolver->isPrimaryKey($column)) { $this->columns[] = $column; } } }
function testMakeTableNameFromRelationColumn() { $this->assertEqual($this->resolver->makeTableNameFromRelationColumn('member_id'), 'member'); }