Skip to content

Instantly share code, notes, and snippets.

@enyo
Created April 13, 2010 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enyo/364815 to your computer and use it in GitHub Desktop.
Save enyo/364815 to your computer and use it in GitHub Desktop.
<?php
$user = $userDao->get();
$user->username = 'enyo';
$user->find(); // Calls $userDao->find($this) internally
$users = $userDao->get();
$users->firstName = 'Matthias';
foreach ($users->findAll() as $user) { /* blabla */ }
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment