attach() публичный Метод

Marks Row as attached
public attach ( integer $id, string $table )
$id integer
$table string
Пример #1
0
 /**
  * Attaches entity
  *
  * @param int $id
  * @throws InvalidStateException
  */
 public function attach($id)
 {
     if ($this->mapper === null) {
         throw new InvalidStateException('Missing mapper in ' . get_called_class() . '.');
     }
     $this->row->attach($id, $this->mapper->getTable(get_called_class()));
 }