Insertion of ResourceID does not occur 
I'm trying to insert the $conn->ResourceID through another class but can not in any way, however giving echo operate normally, why?

Example

```
public function onOpen(ConnectionInterface $conn) {
    $this->MyOtherClassDefinedInConstructor->save($conn);
```

   }

in the other class:

```
  public function save($conn) {
    echo $conn->ResourceID; // works
      $this->db->query("INSERT INTO `x` (`socket`) VALUES ('". $conn->resourceID."');"); // dont works
```

why??
