kla/php-activerecord — pull request #288 by Rican7 (2013-04-16 19:50:42+00:00)
Title: Bug Fix - Association Guarded Attributes

This fixes the association builder, so that you can build associated models without having to make the associated `foreign_keys` accessible to "mass assigning" (not something that you'd normally want to allow).

### Example

```php
'example@example.com',
));
// FAILS
```

### This Fails

THIS FAILS, with a foreign key exception, as the "create_email" method try's to set the foreign key of the model with "guard_attributes" set to true.