```php
$environment = Environment::model()->with('nodes')->findByAttributes(['envName' => $_GET['env']]);
```