src/Synapse/Mapper/AbstractMapper.php
protected function getPrimaryKeyWheres(AbstractEntity $entity)
    {
        $wheres = [];

        $arrayCopy = $entity->getArrayCopy();
        foreach ($this->primaryKey as $keyColumn) {
            $wheres[$keyColumn] = $arrayCopy[$keyColumn];
        }

        return $wheres;
    }
protected function getPrimaryKeyWheres(AbstractEntity $entity)
    {
        $wheres = [];

        $arrayCopy = $entity->getArrayCopy();
        foreach ($this->primaryKey as $keyColumn) {
            $wheres[$keyColumn] = $arrayCopy[$keyColumn];
        }

        return $wheres;
    }
protected function getPrimaryKeyWheres ( AbstractEntity $ entity ) { $ wheres = [ ] ; $ arrayCopy = $ entity -> getArrayCopy ( ) ; foreach ( $ this -> primaryKey as $ keyColumn ) { $ wheres [ $ keyColumn ] = $ arrayCopy [ $ keyColumn ] ; } return $ wheres ; }
Get a wheres array for finding the row that matches an entity

@return array
Get a wheres array for finding the row that matches an entity