public function injectDataMapper(DataMapper $dataMapper)
    {
        $this->dataMapper = $dataMapper;
        $this->dataMapper->setPersistenceManager($this);
    }
public function injectDataMapper(DataMapper $dataMapper)
    {
        $this->dataMapper = $dataMapper;
        $this->dataMapper->setPersistenceManager($this);
    }
public function injectDataMapper ( DataMapper $ dataMapper ) { $ this -> dataMapper = $ dataMapper ; $ this -> dataMapper -> setPersistenceManager ( $ this ) ; }
Injects the data mapper

@param DataMapper $dataMapper
@return void
Injects the data mapper