Closed castamir closed 8 years ago
https://github.com/Tharos/LeanMapper/blob/develop/src/LeanMapper/Entity.php#L667-L670
/** * @property int $id * @property string $name m:passThru(|serialize) */ class Author extends LeanMapper\Entity { public function serialize($name) { return strtolower(implode($name)); } } $author = $repository->get(...); $author->name = ['John Doe']; // john doe
https://github.com/Tharos/LeanMapper/blob/develop/src/LeanMapper/Entity.php#L667-L670