public function add(\Tx_Oelib_Model $model)
    {
        if (!$model->hasUid()) {
            throw new \InvalidArgumentException('Add() requires a model that has a UID.', 1331488748);
        }

        $this->items[$model->getUid()] = $model;
        $this->highestUid = max($this->highestUid, $model->getUid());
    }
public function add(\Tx_Oelib_Model $model)
    {
        if (!$model->hasUid()) {
            throw new \InvalidArgumentException('Add() requires a model that has a UID.', 1331488748);
        }

        $this->items[$model->getUid()] = $model;
        $this->highestUid = max($this->highestUid, $model->getUid());
    }
public function add ( \ Tx_Oelib_Model $ model ) { if ( ! $ model -> hasUid ( ) ) { throw new \ InvalidArgumentException ( 'Add() requires a model that has a UID.' , 1331488748 ) ; } $ this -> items [ $ model -> getUid ( ) ] = $ model ; $ this -> highestUid = max ( $ this -> highestUid , $ model -> getUid ( ) ) ; }
Adds a model to the identity map.

@param \Tx_Oelib_Model $model the model to add, must have a UID

@return void
Adds a model to the identity map .