1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Add fluent code for relations

This commit is contained in:
Benjamin Michotte 2012-01-24 19:08:25 +01:00
parent aca20fc615
commit 1d2f46bda7

View File

@ -128,10 +128,12 @@ public function <methodName>(<methodTypeHint>$<variableName><variableDefault>)
* <description>
*
* @param <variableType>$<variableName>
* @return <entity>
*/
public function <methodName>(<methodTypeHint>$<variableName>)
{
<spaces>$this-><fieldName>[] = $<variableName>;
<spaces>return $this;
}';
private static $_lifecycleCallbackMethodTemplate =