Jarves\Storage\Propel::getVersions PHP Method

getVersions() public method

public getVersions ( $pk, $options = null )
    public function getVersions($pk, $options = null)
    {
        $queryClass = $this->getPhpName() . 'VersionQuery';
        $query = new $queryClass();
        $query->select(array('id', 'workspaceRev', 'workspaceAction', 'workspaceActionDate', 'workspaceActionUser'));
        $query->filterByWorkspaceId(\Jarves\WorkspaceManager::getCurrent());
        $this->mapPk($query, $pk);
        return $query->find()->toArray();
    }